Skip to content

Commit

Permalink
Run mac builds on mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Apr 6, 2024
1 parent 235db5e commit e83a0c9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@ on:

jobs:
release:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [linux, osx]
os: [ubuntu-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build linux image
run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.platform }}
- name: Build
run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'osx' }}

- name: Test linux image
- name: Test
run: dist/schwifty "DE89370400440532013000"

- name: Compress binary
run: tar -czvf schwifty-${{ matrix.platform }}.tar.gz -C dist/ schwifty
run: tar -czvf schwifty.tar.gz -C dist/ schwifty

- uses: shogo82148/actions-upload-release-asset@v1
- name: Upload release asset
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./schwifty-${{ matrix.platform }}.tar.gz
asset_name: schwifty-${{ matrix.platform }}.tar.gz
asset_path: ./schwifty.tar.gz
asset_name: schwifty-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'macos' }}.tar.gz
asset_content_type: application/gzip

0 comments on commit e83a0c9

Please sign in to comment.