Skip to content

Commit

Permalink
Add nuitka build to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 4, 2024
1 parent 5c80e16 commit 30c8a35
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,51 @@ on:
- 'v*'

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-20.04, windows-latest]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: |
pyproject.toml
- name: Build Executable
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: osam
onefile: true

- name: Test Executable
run: |
./build/osam.bin --version
- name: Rename Executable
run: |
mv build/osam.bin build/osam-${{ runner.os }}.bin
if: matrix.os != 'windows-latest'

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-${{ runner.os }}
path: |
build/*.exe
build/*.bin
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
Expand Down

0 comments on commit 30c8a35

Please sign in to comment.