Skip to content

Commit fdd2d0f

Browse files
committed
CI: fix release
1 parent 4b628e4 commit fdd2d0f

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,34 @@ jobs:
1212
target:
1313
- x86_64-unknown-linux-gnu
1414
- aarch64-unknown-linux-gnu
15-
arch:
16-
- x86_64
17-
- arm64
15+
1816
steps:
1917
- uses: actions/checkout@v4
2018
- uses: dtolnay/rust-toolchain@stable
2119
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
2424

2525
- name: Build release
2626
run: cargo build --release --target ${{ matrix.target }}
2727

2828
- name: Archive binary
2929
run: |
3030
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
3232
mkdir out
3333
cp target/${{ matrix.target }}/release/$BIN out/
3434
tar czf $TAR -C out $BIN
3535
3636
- name: Upload Release Asset
3737
uses: softprops/action-gh-release@v2
3838
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
4441
- uses: actions/upload-artifact@v4
4542
if: failure()
4643
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

result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/xnljr82c38bp3cclx1ggaw844jvljfy7-graphsync-0.1.0

0 commit comments

Comments
 (0)