Skip to content

Commit

Permalink
more configure aarch
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscot committed Oct 28, 2024
1 parent bcdfd03 commit e2e2d3f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
#- name: Set minimal profile (Windows only)
# if: matrix.host == 'windows-latest'
# run: rustup set profile minimal
- uses: Swatinem/rust-cache@v2
with:
key: "${{matrix.build}}"
key: "${{ matrix.build }}"
- name: install packages (ubuntu)
if: startsWith(matrix.host, 'ubuntu')
run: scripts/install-ubuntu-packages
- name: Build
run: cargo build --locked
run: cargo build --locked --target ${{ matrix.target }}
- uses: actions/upload-artifact@v4
with:
name: qcp-bin-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/qcp

# We only need to run the checks on a single platform
checks:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: taiki-e/install-action@v2
with:
tool: cross
Expand All @@ -57,5 +58,5 @@ jobs:
# Uploading the artifact is useful when testing the workflow in dry-run mode
- uses: actions/upload-artifact@v4
with:
name: qcp-${{ matrix.target }}
name: qcp-tarball-${{ matrix.target }}
path: ${{ steps.build.outputs.archive }}.tar.gz
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ unescaped_backticks = "deny"

[package.metadata.cross.target.x86_64-unknown-linux-musl]
pre-build = [ "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install capnproto" ]
[package.metadata.cross.target.aarch64-unknown-linux-musl]
pre-build = [ "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install capnproto" ]

0 comments on commit e2e2d3f

Please sign in to comment.