Skip to content

Commit 02c2ec5

Browse files
committed
Remove redundant github release action properties
1 parent 420ed72 commit 02c2ec5

File tree

1 file changed

+17
-46
lines changed

1 file changed

+17
-46
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
tags:
5-
- "v*.*.*"
5+
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
66
env:
77
CARGO_INCREMENTAL: 0
88
permissions:
@@ -49,35 +49,23 @@ jobs:
4949
echo "There is a Cargo.toml version and git tag mismatch." && exit 1;
5050
fi
5151
52-
test:
52+
lint:
5353
needs: setup-environment
54-
uses: ./.github/workflows/test.yml
54+
uses: ./.github/workflows/lint.yml
5555
with:
5656
cache-key: ${{ needs.setup-environment.outputs.cargo_cache_key }}
5757

58-
publish-dry-run:
59-
needs: [setup-environment, test]
60-
runs-on: ubuntu-latest
61-
env:
62-
CARGO_CACHE_KEY: ${{ needs.setup-environment.outputs.cargo_cache_key }}
63-
steps:
64-
- uses: actions/checkout@v4
65-
- uses: actions-rust-lang/setup-rust-toolchain@v1
66-
- uses: actions/cache@v4
67-
with:
68-
path: |
69-
~/.cargo/registry
70-
~/.cargo/git
71-
target
72-
~/.cargo/bin
73-
key: ${{ env.CARGO_CACHE_KEY }}
74-
id: cache-cargo-test
58+
check-msrv:
59+
uses: ./.github/workflows/msrv.yml
7560

76-
- name: Attempt a publish dryrun
77-
run: |
78-
cargo publish --dry-run -p tinted-builder-rust
61+
test:
62+
needs: setup-environment
63+
uses: ./.github/workflows/test.yml
64+
with:
65+
cache-key: ${{ needs.setup-environment.outputs.cargo_cache_key }}
7966

8067
create-release:
68+
needs: [check-msrv, lint, test]
8169
runs-on: ubuntu-latest
8270
steps:
8371
- uses: actions/checkout@v4
@@ -87,45 +75,28 @@ jobs:
8775
token: ${{ secrets.GITHUB_TOKEN }}
8876

8977
release:
90-
needs: [setup-environment, publish-dry-run]
78+
needs: create-release
9179
name: ${{ matrix.target }}
9280
runs-on: ${{ matrix.os }}
93-
env:
94-
CARGO_CACHE_KEY: ${{ needs.setup-environment.outputs.cargo_cache_key }}
9581
strategy:
96-
fail-fast: false
9782
matrix:
9883
include:
99-
- prefix: x86_64-linux
100-
target: x86_64-unknown-linux-gnu
84+
- target: x86_64-unknown-linux-gnu
10185
os: ubuntu-latest
102-
cross: false
103-
deb: false
104-
- prefix: i686-linux
105-
target: i686-unknown-linux-gnu
86+
- target: i686-unknown-linux-gnu
10687
os: ubuntu-latest
107-
cross: true
108-
deb: true
109-
- prefix: aarch64-linux
110-
target: aarch64-unknown-linux-gnu
88+
- target: aarch64-unknown-linux-gnu
11189
os: ubuntu-latest
112-
cross: true
113-
deb: true
11490
- os: macos-11
11591
target: x86_64-apple-darwin
116-
cross: true
117-
deb: false
11892
- os: macos-11
11993
target: aarch64-apple-darwin
120-
cross: true
121-
deb: false
122-
12394
steps:
12495
- uses: actions/checkout@v4
12596
- uses: taiki-e/upload-rust-binary-action@v1
12697
with:
12798
bin: tinted-builder-rust
99+
manifest-path: tinted-builder-rust/Cargo.toml
128100
target: ${{ matrix.target }}
129-
tar: unix
130-
zip: windows
131101
token: ${{ secrets.GITHUB_TOKEN }}
102+
checksum: sha256

0 commit comments

Comments
 (0)