diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 687fe86..37d6058 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,12 +40,16 @@ jobs: # 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: diff --git a/Cargo.toml b/Cargo.toml index 89550d7..98bd1f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" ]