Skip to content

Commit

Permalink
Builds osx binary on osx using devenv
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Apr 6, 2024
1 parent eb41e91 commit 73b1118
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,29 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build binary
# Linux
- name: Build binary (linux/windows)
if: matrix.platform == 'linux' || matrix.platform == 'windows'
run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.platform }}

- name: Build binary (macos)
uses: devcontainers/[email protected]
# Macos
- uses: cachix/install-nix-action@v26
if: matrix.platform == 'osx'

- uses: cachix/cachix-action@v14
if: matrix.platform == 'osx'
with:
runCmd: devenv test
name: devenv

- name: Install devenv.sh
if: matrix.platform == 'osx'
run: nix profile install nixpkgs#devenv

- name: Build binary (macos)
if: matrix.platform == 'osx'
run: devenv test

# Finalize
- name: Test binary
run: dist/schwifty "DE89370400440532013000"

Expand Down

0 comments on commit 73b1118

Please sign in to comment.