@@ -12,37 +12,34 @@ jobs:
12
12
target :
13
13
- x86_64-unknown-linux-gnu
14
14
- aarch64-unknown-linux-gnu
15
- arch :
16
- - x86_64
17
- - arm64
15
+
18
16
steps :
19
17
- uses : actions/checkout@v4
20
18
- uses : dtolnay/rust-toolchain@stable
21
19
with :
22
- rust-version : stable
23
- targets : ${{ matrix.target }}
20
+ target : ${{ matrix.target }}
21
+
22
+ - name : Add openssl and pkg-config
23
+ run : sudo apt install libssl-dev pkg-config
24
24
25
25
- name : Build release
26
26
run : cargo build --release --target ${{ matrix.target }}
27
27
28
28
- name : Archive binary
29
29
run : |
30
30
BIN=graphsync
31
- TAR=graphsync-${{ github.event.release.tag_name }}-${{ matrix.arch }}.tar.gz
31
+ TAR=graphsync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
32
32
mkdir out
33
33
cp target/${{ matrix.target }}/release/$BIN out/
34
34
tar czf $TAR -C out $BIN
35
35
36
36
- name : Upload Release Asset
37
37
uses : softprops/action-gh-release@v2
38
38
with :
39
- tag_name : ${{ github.event.release.tag_name }}
40
- name : graphsync-${{ matrix.arch }}.tar.gz
41
- asset_path : graphsync-${{ github.event.release.tag_name }}-${{ matrix.arch }}.tar.gz
42
- env :
43
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ token : ${{ secrets.GITHUB_TOKEN }}
40
+ files : graphsync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
44
41
- uses : actions/upload-artifact@v4
45
42
if : failure()
46
43
with :
47
- name : fallback-${{ matrix.arch }}
48
- path : graphsync-${{ github.event.release.tag_name }}-${{ matrix.arch }}.tar.gz
44
+ name : fallback-${{ matrix.target }}
45
+ path : graphsync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
0 commit comments