File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " v*"
7
+ workflow_dispatch :
7
8
8
9
permissions :
9
10
contents : write
10
11
11
12
jobs :
12
13
publish :
13
14
runs-on : ubuntu-latest
15
+ if : github.event_name == 'push'
14
16
steps :
15
17
- uses : actions/checkout@v3
16
18
with :
44
46
matrix :
45
47
include :
46
48
- target : x86_64-unknown-linux-gnu
49
+ - target : aarch64-unknown-linux-gnu
50
+ cross : true
47
51
48
52
runs-on : ubuntu-latest
49
53
steps :
52
56
with :
53
57
targets : ${{ matrix.target }}
54
58
cache-target : ${{ matrix.target }}/release
59
+ bins : cross
55
60
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 }}
62
62
63
63
- name : Upload Release Asset
64
64
id : upload-release-asset
You can’t perform that action at this time.
0 commit comments