Skip to content

Commit 082fe29

Browse files
committed
fix: ignore binary release
Signed-off-by: Anton Whalley <[email protected]>
1 parent b254f8f commit 082fe29

File tree

1 file changed

+86
-85
lines changed

1 file changed

+86
-85
lines changed
Lines changed: 86 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,86 @@
1-
name: Release Binary Assets
2-
on:
3-
release:
4-
types:
5-
- published
6-
jobs:
7-
release:
8-
runs-on: ${{ matrix.os }}
9-
strategy:
10-
fail-fast: false
11-
matrix:
12-
include:
13-
- target: x86_64-unknown-linux-musl
14-
os: ubuntu-latest
15-
cross: true
16-
binName: quadit
17-
- target: x86_64-unknown-linux-gnu
18-
os: ubuntu-latest
19-
cross: true
20-
binName: quadit
21-
- target: aarch64-unknown-linux-musl
22-
os: ubuntu-latest
23-
cross: true
24-
binName: quadit
25-
- target: aarch64-unknown-linux-gnu
26-
os: ubuntu-latest
27-
cross: true
28-
binName: quadit
29-
steps:
30-
- uses: actions/checkout@v4
31-
- name: Setup Rust
32-
uses: dtolnay/rust-toolchain@stable
33-
with:
34-
toolchain: stable
35-
target: ${{ matrix.target }}
36-
override: true
37-
- uses: Swatinem/rust-cache@v1
38-
- name: Build
39-
uses: actions-rs/cargo@v1
40-
with:
41-
command: build
42-
use-cross: ${{ matrix.cross }}
43-
args: --release --target=${{ matrix.target }}
44-
# - name: Smoke Test
45-
# uses: actions-rs/cargo@v1
46-
# with:
47-
# command: run
48-
# use-cross: ${{ matrix.cross }}
49-
# args: --release --target=${{ matrix.target }} -- --version
50-
- name: Install cargo-deb and create a deb package
51-
if: matrix.os == 'ubuntu-latest'
52-
run: |
53-
cargo install cargo-deb
54-
cargo build --release
55-
cargo deb --no-build
56-
- name: Upload the deb to release files
57-
if: matrix.os == 'ubuntu-latest'
58-
uses: svenstaro/upload-release-action@v2
59-
with:
60-
repo_token: ${{ secrets.GITHUB_TOKEN }}
61-
file: target/debian/*
62-
tag: ${{ github.ref }}
63-
file_glob: true
64-
overwrite: true
65-
- name: Create Archive
66-
id: archive
67-
shell: bash
68-
env:
69-
TARGET: ${{ matrix.target }}
70-
TAG: ${{ github.event.release.tag_name }}
71-
run: |
72-
filename="cargo-generate-$TAG-$TARGET.tar.gz"
73-
tar -czvf "$filename" README.md LICENSE-MIT LICENSE-APACHE -C "target/$TARGET/release" "${{ matrix.binName }}"
74-
echo "::set-output name=filename::$filename"
75-
- name: Upload Archive
76-
uses: ncipollo/[email protected]
77-
with:
78-
token: ${{ secrets.GITHUB_TOKEN }}
79-
allowUpdates: true
80-
artifactErrorsFailBuild: true
81-
artifacts: ${{ steps.archive.outputs.filename }}
82-
artifactContentType: application/octet-stream
83-
omitBodyDuringUpdate: true
84-
omitNameDuringUpdate: true
85-
omitPrereleaseDuringUpdate: true
1+
# name: Release Binary Assets
2+
# on:
3+
# release:
4+
# types:
5+
# - published
6+
# jobs:
7+
# release:
8+
# runs-on: ${{ matrix.os }}
9+
# strategy:
10+
# fail-fast: false
11+
# matrix:
12+
# include:
13+
# - target: x86_64-unknown-linux-musl
14+
# os: ubuntu-latest
15+
# cross: true
16+
# binName: quadit
17+
# - target: x86_64-unknown-linux-gnu
18+
# os: ubuntu-latest
19+
# cross: true
20+
# binName: quadit
21+
# - target: aarch64-unknown-linux-musl
22+
# os: ubuntu-latest
23+
# cross: true
24+
# binName: quadit
25+
# - target: aarch64-unknown-linux-gnu
26+
# os: ubuntu-latest
27+
# cross: true
28+
# binName: quadit
29+
# steps:
30+
# - uses: actions/checkout@v4
31+
# - name: Setup Rust
32+
# uses: dtolnay/rust-toolchain@stable
33+
# with:
34+
# toolchain: stable
35+
# target: ${{ matrix.target }}
36+
# override: true
37+
# - uses: Swatinem/rust-cache@v1
38+
# - name: Build
39+
# uses: actions-rs/cargo@v1
40+
# with:
41+
# command: build
42+
# use-cross: ${{ matrix.cross }}
43+
# args: --release --target=${{ matrix.target }}
44+
# - name: Smoke Test
45+
# uses: actions-rs/cargo@v1
46+
# with:
47+
# command: run
48+
# use-cross: ${{ matrix.cross }}
49+
# args: --release --target=${{ matrix.target }} -- --version
50+
# - name: Install cargo-deb and create a deb package
51+
# if: matrix.os == 'ubuntu-latest'
52+
# run: |
53+
# apt-get update && apt-get install -yq libssl-dev
54+
# cargo install cargo-deb
55+
# cargo build --release
56+
# cargo deb --no-build
57+
# - name: Upload the deb to release files
58+
# if: matrix.os == 'ubuntu-latest'
59+
# uses: svenstaro/upload-release-action@v2
60+
# with:
61+
# repo_token: ${{ secrets.GITHUB_TOKEN }}
62+
# file: target/debian/*
63+
# tag: ${{ github.ref }}
64+
# file_glob: true
65+
# overwrite: true
66+
# - name: Create Archive
67+
# id: archive
68+
# shell: bash
69+
# env:
70+
# TARGET: ${{ matrix.target }}
71+
# TAG: ${{ github.event.release.tag_name }}
72+
# run: |
73+
# filename="cargo-generate-$TAG-$TARGET.tar.gz"
74+
# tar -czvf "$filename" README.md LICENSE-MIT LICENSE-APACHE -C "target/$TARGET/release" "${{ matrix.binName }}"
75+
# echo "::set-output name=filename::$filename"
76+
# - name: Upload Archive
77+
# uses: ncipollo/[email protected]
78+
# with:
79+
# token: ${{ secrets.GITHUB_TOKEN }}
80+
# allowUpdates: true
81+
# artifactErrorsFailBuild: true
82+
# artifacts: ${{ steps.archive.outputs.filename }}
83+
# artifactContentType: application/octet-stream
84+
# omitBodyDuringUpdate: true
85+
# omitNameDuringUpdate: true
86+
# omitPrereleaseDuringUpdate: true

0 commit comments

Comments
 (0)