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 da1cdaf
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,60 @@ on:
- 'v*'

jobs:
build_binary:
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: Install main
run: |
pip install .
- 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/')
needs: build_binary

runs-on: ubuntu-latest

steps:
- name: Build Changelog
id: github_release
Expand Down

0 comments on commit da1cdaf

Please sign in to comment.