Skip to content

Commit 8b934f2

Browse files
authored
Switch to reusable workflow (#106)
1 parent 2dc258d commit 8b934f2

File tree

2 files changed

+11
-83
lines changed

2 files changed

+11
-83
lines changed

.github/rust-daily-patch.yaml

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

.github/workflows/rust-daily.yaml

Lines changed: 11 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,14 @@
1-
# DO NOT EDIT THIS FILE.
2-
# Instead, edit the jsonpatch file (actually YAML) in .github/rust-daily-patch.yaml
3-
# For docs, see github-actions in the IronCoreLabs/depot repo.
4-
51
name: Rust Daily
6-
concurrency:
7-
group: ${{ github.workflow }}-${{ github.ref }}
8-
cancel-in-progress: true
9-
'on':
2+
on:
103
schedule:
11-
- cron: 0 14 * * 2-5
12-
workflow_dispatch: null
13-
jobs:
14-
cargo-check:
15-
runs-on: ubuntu-22.04
16-
strategy:
17-
matrix:
18-
toolchain:
19-
- stable
20-
- beta
21-
steps:
22-
- uses: actions/checkout@v3
23-
- uses: actions-rs/toolchain@v1
24-
with:
25-
profile: minimal
26-
toolchain: ${{ matrix.toolchain }}
27-
override: true
28-
target: wasm32-unknown-unknown
29-
- uses: IronCoreLabs/[email protected]
30-
with:
31-
crate: wasm-bindgen-cli
32-
accesskey: AKIAU2WBY6VDTC563V7G
33-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
34-
os: ubuntu-20.04
35-
- name: Install sccache
36-
uses: IronCoreLabs/[email protected]
37-
with:
38-
crate: sccache
39-
accesskey: AKIAU2WBY6VDTC563V7G
40-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
41-
os: ubuntu-22.04
42-
version: latest
43-
- name: Setup sccache env variables
44-
run: 'echo "CC=$(which cc)" >> $GITHUB_ENV
45-
46-
echo "RUSTC_WRAPPER=$HOME/.cargo/bin/sccache" >> $GITHUB_ENV
47-
48-
echo "AWS_ACCESS_KEY_ID=AKIAU2WBY6VDVHUO5WSN" >> $GITHUB_ENV
49-
50-
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.SCCACHE_AWS_SECRET }}" >> $GITHUB_ENV
4+
- cron: 0 14 * * 1-5
5+
workflow_dispatch:
516

52-
echo "SCCACHE_BUCKET=sccache-rust" >> $GITHUB_ENV
53-
54-
echo "SCCACHE_S3_USE_SSL=true" >> $GITHUB_ENV
55-
56-
echo "SCCACHE_REGION=us-west-2" >> $GITHUB_ENV
57-
58-
'
59-
- uses: Swatinem/rust-cache@v2
60-
- run: cargo update
61-
- run: cargo check --all-features
62-
- name: Print sccache stats
63-
run: sccache -s
7+
jobs:
8+
rust-daily:
9+
uses: IronCoreLabs/workflows/.github/workflows/rust-daily.yaml@rust-daily-v0
10+
with:
11+
matrix_include: '[]'
12+
rust_targets: '["wasm32-unknown-unknown"]'
13+
rust_versions: '["stable", "beta"]'
14+
secrets: inherit

0 commit comments

Comments
 (0)