Skip to content

Commit

Permalink
chore: add pre-build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Dec 24, 2024
1 parent 05d3b68 commit 3028633
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/matrix-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
fail-fast: false
matrix:
include:
- name: darwin-arm64
runner: macos-latest
target: aarch64-apple-darwin
command: cargo
# - name: darwin-arm64
# runner: macos-latest
# target: aarch64-apple-darwin
# command: cargo

- name: win32-x64-msvc
runner: windows-latest
target: x86_64-pc-windows-msvc
command: cargo
# - name: win32-x64-msvc
# runner: windows-latest
# target: x86_64-pc-windows-msvc
# command: cargo

# - name: linux-arm64-gnu
# runner: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# command: cross
- name: linux-arm64-gnu
runner: ubuntu-latest
target: aarch64-unknown-linux-gnu
command: cross

name: build - ${{ matrix.name }}
steps:
Expand Down Expand Up @@ -76,6 +76,7 @@ jobs:
shell: bash
run: |
if [[ "${{ matrix.runner }}" == "ubuntu-latest" ]]; then
echo "Build with Jack feature"
${{ matrix.command }} build --locked --features jack --release --target ${{ matrix.target }}
else
${{ matrix.command }} build --locked --release --target ${{ matrix.target }}
Expand Down
2 changes: 1 addition & 1 deletion .scripts/build-retrieve-from-github.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const repo = process.env.REPO_NAME;
const ghToken = process.env.GITHUB_TOKEN;

const workflowName = 'matrix-build';
const numArtifacts = 1; // 2 Mac, 2 windows
const numArtifacts = 2; // 2 Mac, 2 windows
// need a key for downloading job artifacts
const octokit = new Octokit({ auth: ghToken });

Expand Down
7 changes: 0 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,3 @@ strip = true

[features]
jack = ["web-audio-api/cpal-jack"]


[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libasound2-dev:$CROSS_DEB_ARCH libjack-jackd2-dev:$CROSS_DEB_ARCH"
]

0 comments on commit 3028633

Please sign in to comment.