Skip to content

Commit 6d22d0c

Browse files
authored
Merge pull request #671 from uuid-rs/ci/cleanups
Use sha hash for checkout action and remove others
2 parents 52867d4 + 0536908 commit 6d22d0c

File tree

5 files changed

+14
-111
lines changed

5 files changed

+14
-111
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/Feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 14 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,10 @@ jobs:
4747

4848
steps:
4949
- name: Checkout repository
50-
uses: actions/checkout@v2
50+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
5151

5252
- name: Install Rust Toolchain
53-
uses: actions-rs/toolchain@v1
54-
with:
55-
override: true
56-
profile: minimal
57-
toolchain: ${{ matrix.channel }}-${{ matrix.rust_target }}
53+
run: rustup update ${{ matrix.channel }}-${{ matrix.rust_target }} && rustup default ${{ matrix.channel }}-${{ matrix.rust_target }}
5854

5955
- name: Install cargo-hack
6056
run: cargo install cargo-hack
@@ -76,14 +72,7 @@ jobs:
7672
runs-on: ubuntu-20.04
7773
steps:
7874
- name: Checkout sources
79-
uses: actions/checkout@v2
80-
81-
- name: Install Rust toolchain
82-
uses: actions-rs/toolchain@v1
83-
with:
84-
profile: minimal
85-
toolchain: stable
86-
override: true
75+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
8776

8877
- name: All features
8978
run: cargo test --all-features
@@ -93,24 +82,20 @@ jobs:
9382
runs-on: ubuntu-20.04
9483
steps:
9584
- name: Checkout sources
96-
uses: actions/checkout@v2
85+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
9786

9887
- name: Install Rust toolchain
99-
uses: actions-rs/toolchain@v1
100-
with:
101-
profile: minimal
102-
toolchain: 1.57.0
103-
override: true
88+
run: rustup update 1.57.0
10489

10590
- name: Version features
106-
run: cargo test --features "$VERSION_FEATURES"
91+
run: cargo +1.57.0 test --features "$VERSION_FEATURES"
10792

10893
wasm:
10994
name: Tests / WebAssembly
11095
runs-on: ubuntu-latest
11196
steps:
11297
- name: Checkout sources
113-
uses: actions/checkout@v2
98+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
11499

115100
- name: Install
116101
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@@ -129,13 +114,7 @@ jobs:
129114
runs-on: ubuntu-latest
130115
steps:
131116
- name: Checkout sources
132-
uses: actions/checkout@v2
133-
- name: Install Rust toolchain
134-
uses: actions-rs/toolchain@v1
135-
with:
136-
profile: minimal
137-
toolchain: stable
138-
override: true
117+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
139118

140119
- name: Install Cross
141120
run: cargo install cross
@@ -148,27 +127,16 @@ jobs:
148127
runs-on: ubuntu-latest
149128
steps:
150129
- name: Checkout sources
151-
uses: actions/checkout@v2
130+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
152131

153132
- name: Install Rust toolchain
154-
uses: actions-rs/toolchain@v1
155-
with:
156-
profile: minimal
157-
toolchain: nightly
158-
target: thumbv6m-none-eabi
159-
override: true
133+
run: rustup update nightly && rustup target add --toolchain nightly thumbv6m-none-eabi
160134

161135
- name: No features
162-
uses: actions-rs/cargo@v1
163-
with:
164-
command: build
165-
args: -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features
136+
run: cargo +nightly build -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features
166137

167138
- name: Version features
168-
uses: actions-rs/cargo@v1
169-
with:
170-
command: build
171-
args: -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features --features "v1 v3 v5 v6 serde"
139+
run: cargo +nightly build -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features --features "v1 v3 v5 v6 serde"
172140

173141
nodeps:
174142
name: Build / No deps
@@ -177,14 +145,10 @@ jobs:
177145
RUSTFLAGS: "--cfg uuid_unstable"
178146
steps:
179147
- name: Checkout sources
180-
uses: actions/checkout@v2
148+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
181149

182150
- name: Install Rust toolchain
183-
uses: actions-rs/toolchain@v1
184-
with:
185-
profile: minimal
186-
toolchain: nightly
187-
override: true
151+
run: rustup update nightly && rustup default nightly
188152

189153
- name: Install cargo-hack
190154
run: cargo install cargo-hack

0 commit comments

Comments
 (0)