From 85f79a968a2de4d7589588f6c91315275a6186a1 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Sun, 31 Dec 2023 13:46:14 +0100 Subject: [PATCH] Add msys CI. --- .github/workflows/msys2.yml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/msys2.yml diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml new file mode 100644 index 0000000..6bb87dc --- /dev/null +++ b/.github/workflows/msys2.yml @@ -0,0 +1,68 @@ +name: Windows-Msys2 + +on: + workflow_dispatch: + push: + paths: + - 'src/**' + - 'test/**' + - '.github/workflows/msys2.yml' + +jobs: + build: + + runs-on: windows-latest + + steps: + + - uses: msys2/setup-msys2@v2 + + - name: pacman ctemplate build dependencies + shell: msys2 {0} + run: pacman -S --noconfirm autoconf automake libtool make python3 + + - name: checkout ctemplate + uses: actions/checkout@v2 + with: + repository: olafvdspek/ctemplate + ref: ctemplate-2.4 +# - name: build ctemplate +# shell: msys2 {0} +# run: | +# ./autogen.sh +# ./configure +# make +# make install +# rm -Rf * + + - name: pacman llvm/clang + id: LLVM + shell: msys2 {0} + run: | + pacman -S --noconfirm mingw-w64-x86_64-llvm mingw-w64-x86_64-clang + echo "::set-output name=LLVM_ROOT::/c/mys64/mingw/" + + - uses: actions/checkout@v2 + + - name: premake gmake2 + run: | + cd premake + ./premake5.exe --file="premake/premake5.lua" --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake2 + + - name: make config=releasewithdll + shell: msys2 {0} + run: | + cd project/gmake2 + make config=releasewithdll verbose=1 + cd ../../bin/gmake2/ReleaseWithDLL + ./ccccc_test + LD_LIBRARY_PATH=/usr/local/lib ./ccccc --help + + - name: make config=release + shell: msys2 {0} + run: | + cd project/gmake2 + make config=release verbose=1 + cd ../../bin/gmake2/Release + ./ccccc_test + #LD_LIBRARY_PATH=/usr/local/lib ./ccccc --help