Skip to content

Commit 332bd8b

Browse files
committed
feat(ci:deploy): decommissioning the release.yml action
- the `deploy.yml` action will replace the old approach - call out to `build.yml` - doing the deployment things on top
1 parent 1fec4f7 commit 332bd8b

File tree

1 file changed

+5
-105
lines changed

1 file changed

+5
-105
lines changed

.github/workflows/release.yml renamed to .github/workflows/deploy.yml

Lines changed: 5 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
## references:
2-
# cache: https://github.com/actions/cache/blob/main/examples.md#rust---cargo
3-
# audit: https://github.com/actions-rs/audit-check
4-
# "needs": https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds
5-
6-
name: Release
1+
name: Deploy
72
on:
83
push:
94
tags:
@@ -12,109 +7,14 @@ on:
127
- "**/docs/**"
138
- "**.md"
149

15-
# NOTE: needs to stay in sync with ./build.yml
1610
jobs:
17-
check:
18-
name: check
19-
strategy:
20-
fail-fast: false
21-
matrix:
22-
version: [ 'macos-latest', 'ubuntu-latest']
23-
runs-on: ${{ matrix.version }}
24-
steps:
25-
- uses: actions/checkout@v2
26-
- name: setup | rust
27-
uses: actions-rs/toolchain@v1
28-
with:
29-
toolchain: stable
30-
default: true
31-
profile: minimal
32-
components: clippy, rustfmt
33-
- uses: Swatinem/rust-cache@v1
34-
- run: cargo check
35-
36-
lint:
37-
name: lint
38-
needs: check
39-
strategy:
40-
fail-fast: false
41-
matrix:
42-
version: [ 'macos-latest', 'ubuntu-latest']
43-
cargo-cmd:
44-
- fmt --all -- --check
45-
- clippy --all-targets --all-features -- -D warnings
46-
runs-on: ${{ matrix.version }}
47-
steps:
48-
- uses: actions/checkout@v2
49-
- name: setup | rust
50-
uses: actions-rs/toolchain@v1
51-
with:
52-
toolchain: stable
53-
default: true
54-
profile: minimal
55-
components: clippy, rustfmt
56-
- uses: Swatinem/rust-cache@v1
57-
- run: cargo ${{ matrix['cargo-cmd'] }}
58-
59-
tests:
60-
name: test
61-
needs: check
62-
strategy:
63-
fail-fast: false
64-
matrix:
65-
# version: [ 'macos-11.0', 'macos-10.15', 'macos-10.14', 'ubuntu-latest']
66-
version: [ 'macos-latest', 'ubuntu-latest']
67-
rust: [ nightly, stable ]
68-
runs-on: ${{ matrix.version }}
69-
continue-on-error: ${{ matrix.rust == 'nightly' }}
70-
steps:
71-
- uses: actions/checkout@v2
72-
- name: setup | rust
73-
uses: actions-rs/toolchain@v1
74-
with:
75-
toolchain: ${{ matrix.rust }}
76-
default: true
77-
profile: minimal
78-
- uses: Swatinem/rust-cache@v1
79-
- name: cargo test
80-
run: cargo test --all --locked -- -Z unstable-options
81-
82-
pkg-deb:
83-
name: binaray package .deb
84-
needs: check
85-
runs-on: ubuntu-latest
86-
steps:
87-
- uses: actions/checkout@v2
88-
- name: build .deb file
89-
uses: sassman/rust-deb-builder@v1.57.0
90-
- name: Archive deb artifact
91-
uses: actions/upload-artifact@v2
92-
with:
93-
name: t-rec-amd64-static.deb
94-
path: target/x86_64-unknown-linux-musl/debian/t-rec*.deb
95-
96-
audit:
97-
name: security audit
98-
needs: check
99-
runs-on: macos-latest
100-
steps:
101-
- uses: actions/checkout@v2
102-
- name: setup | rust
103-
uses: actions-rs/toolchain@v1
104-
with:
105-
toolchain: stable
106-
default: true
107-
profile: minimal
108-
- uses: Swatinem/rust-cache@v1
109-
- name: audit
110-
uses: actions-rs/audit-check@v1
111-
with:
112-
token: ${{ secrets.GITHUB_TOKEN }}
113-
# END of build.yml
11+
# call out to build.yml
12+
doing-a-build:
13+
uses: sassman/t-rec-rs/.github/workflows/build.yml@7dfca05926ed20ff656cec72f94f41f21f348fc6
11414

11515
publish:
11616
name: post / cargo publish
117-
needs: [audit, lint, tests]
17+
needs: [doing-a-build]
11818
runs-on: macos-latest
11919
steps:
12020
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)