File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " v*"
7+ workflow_dispatch :
78
89permissions :
910 contents : write
1011
1112jobs :
1213 publish :
1314 runs-on : ubuntu-latest
15+ if : github.event_name == 'push'
1416 steps :
1517 - uses : actions/checkout@v3
1618 with :
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 :
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
You can’t perform that action at this time.
0 commit comments