Skip to content

Commit

Permalink
[CI] Add msys2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Apr 25, 2024
1 parent a0b0bf8 commit 3b4ce0d
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
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
with:
update: true
install: >-
# ctemplate dependencies
autoconf
automake
libtool
make
python3
# ccccc dependencies
mingw-w64-x86_64-clang
mingw-w64-x86_64-llvm

# ctemplate
- 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 *
# ccccc
- uses: actions/checkout@v2

- name: premake gmake2
run: |
cd premake
./premake5.exe gmake2 #--llvm-root=
- 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
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ccccc
path: |
bin/gmake2/Release/*.*
bin/gmake2/ReleaseWithDll/*.*

0 comments on commit 3b4ce0d

Please sign in to comment.