Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- if: runner.os != 'Windows'
shell: bash
run: echo "PYO3_PYTHON=$pythonLocation/bin/python" >> $GITHUB_ENV
- if: runner.os == 'Windows'
shell: pwsh
run: echo "PYO3_PYTHON=$env:pythonLocation\python.exe" >> $GITHUB_ENV
9 changes: 8 additions & 1 deletion dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ members = ["cargo:."]
cargo-dist-version = "0.30.2"
# CI backends to support
ci = "github"
# Additional setup steps for GitHub builds
github_build_setup = ".github/workflows/build-setup.yml"
# The installers to generate for each app
installers = ["shell", "powershell", "msi"]
# Target platforms to build apps for (Rust target-triple syntax)
Expand All @@ -15,8 +17,13 @@ targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-da
install-path = "CARGO_HOME"
# Whether to install an updater program
install-updater = false
# prevents errors for they python parts of the release
# Skip checking whether the specified configuration files are up to date
allow-dirty = ["ci"]

[dist.dependencies.apt."python3.12"]
version = "*"
stage = ["build"]
targets = ["aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]

[workspace.metadata.dist]
allow-dirty = true