Skip to content

Commit b7dcaa6

Browse files
committed
feat(cargo-codspeed): add prebuilt aarch64 binary to releases
1 parent 8a9f8e1 commit b7dcaa6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
tags:
66
- "v*"
7+
workflow_dispatch:
78

89
permissions:
910
contents: write
1011

1112
jobs:
1213
publish:
1314
runs-on: ubuntu-latest
15+
if: github.event_name == 'push'
1416
steps:
1517
- uses: actions/checkout@v3
1618
with:
@@ -44,6 +46,8 @@ jobs:
4446
matrix:
4547
include:
4648
- target: x86_64-unknown-linux-gnu
49+
- target: aarch64-unknown-linux-gnu
50+
cross: true
4751

4852
runs-on: ubuntu-latest
4953
steps:
@@ -52,13 +56,9 @@ jobs:
5256
with:
5357
targets: ${{ matrix.target }}
5458
cache-target: ${{ matrix.target }}/release
59+
bins: cross
5560

56-
# TODO: Reenable when we have a way to build for other targets
57-
# - name: Setup environment for target
58-
# if: ${{ matrix.setup }}
59-
# run: ${{ matrix.setup }}
60-
61-
- run: cargo build --release --features vendored-openssl --bin cargo-codspeed --target ${{ matrix.target }}
61+
- run: ${{ matrix.cross && 'cross' || 'cargo' }} build --locked --release --features vendored-openssl --bin cargo-codspeed --target ${{ matrix.target }}
6262

6363
- name: Upload Release Asset
6464
id: upload-release-asset

0 commit comments

Comments
 (0)