Skip to content

Commit

Permalink
--wip-- [with ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Sep 6, 2024
1 parent d6f4f92 commit 304b206
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,27 @@ jobs:
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}

build-upload-binaries:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: aarch64-unknown-linux-gnu
setup: |
sudo apt-get install -y gcc-aarch64-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v0
with:
targets: ${{ matrix.target }}
cache-target: ${{ matrix.target }}/release

- name: Setup environment for target
if: ${{ matrix.setup }}
run: ${{ matrix.setup }}

- run: cargo build --release --features vendored-openssl --bin cargo-codspeed --target ${{ matrix.target }}
2 changes: 2 additions & 0 deletions crates/cargo-codspeed/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

0 comments on commit 304b206

Please sign in to comment.