Skip to content

Commit

Permalink
Merge pull request #50 from sezero/actions-0
Browse files Browse the repository at this point in the history
updated windows CI
  • Loading branch information
fragglet committed Jul 29, 2023
2 parents 9676231 + 1eab230 commit 18bbcc3
Showing 1 changed file with 47 additions and 5 deletions.
52 changes: 47 additions & 5 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,30 @@ jobs:
run: |
make -j check || (cat test/test-suite.log; false)
windows_build:
windows_x86_build:
runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
update: true
install: autoconf automake libtool gcc make groff zip dos2unix
install: base-devel git autoconf automake libtool groff zip dos2unix mingw-w64-i686-gcc
- uses: actions/checkout@v3
- name: Find Git version
id: version
run: |
export VERSION=$(git rev-parse --short HEAD)
echo "VERSION=$VERSION-win32" >> $GITHUB_OUTPUT
# TODO: --disable-shared is here because pkg/win32 doesn't package the dll..
- name: configure
run: ./autogen.sh --disable-shared
run: ./autogen.sh --disable-shared --host=i686-w64-mingw32
- name: make
run: make -j
# TODO: Tests are not currently run on Windows
Expand All @@ -81,3 +85,41 @@ jobs:
with:
path: "pkg/win32/staging"
name: lhasa-${{steps.version.outputs.VERSION}}

windows_x64_build:
runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: base-devel git autoconf automake libtool groff zip dos2unix mingw-w64-x86_64-gcc
- uses: actions/checkout@v3
- name: Find Git version
id: version
run: |
export VERSION=$(git rev-parse --short HEAD)
echo "VERSION=$VERSION-win64" >> $GITHUB_OUTPUT
# TODO: --disable-shared is here because pkg/win64 doesn't package the dll..
- name: configure
run: ./autogen.sh --disable-shared --host=x86_64-w64-mingw32
- name: make
run: make -j
# TODO: Tests are not currently run on Windows
# TODO: win64 packaging requires updated pkg directory
#- name: Make windows package
# run: |
# cd pkg/win64
# make
#- name: Upload build
# uses: actions/upload-artifact@v1
# with:
# path: "pkg/win64/staging"
# name: lhasa-${{steps.version.outputs.VERSION}}

0 comments on commit 18bbcc3

Please sign in to comment.