Skip to content

Commit

Permalink
Add Windows library building to Github Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
brownts committed Aug 23, 2024
1 parent 4220d54 commit aa5fe0b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,34 @@ jobs:
strategy:
fail-fast: true
matrix:
os:
- macos-latest
- ubuntu-latest
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- { os: macos-latest, shell: bash }
- { os: ubuntu-latest, shell: bash }
- { os: windows-latest, shell: msys2, sys: mingw64 }
defaults:
run:
shell: ${{ matrix.shell }} {0}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup MSYS2
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
install: git zip
pacboy: gcc:p

- name: Build
run: |
./batch.sh
export platform=$(echo ${{ runner.os }} | awk '{print tolower($0)}')
zip -r "libs-${platform}-x64.zip" dist
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit aa5fe0b

Please sign in to comment.