Skip to content

Commit be182bd

Browse files
authored
Switch to reusable workflow (#126)
1 parent 3b32859 commit be182bd

File tree

1 file changed

+7
-52
lines changed

1 file changed

+7
-52
lines changed

.github/workflows/rust-daily.yaml

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,10 @@
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-
- name: Install sccache
29-
uses: IronCoreLabs/[email protected]
30-
with:
31-
crate: sccache
32-
accesskey: AKIAU2WBY6VDTC563V7G
33-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
34-
os: ubuntu-22.04
35-
version: latest
36-
- name: Setup sccache env variables
37-
run: 'echo "CC=$(which cc)" >> $GITHUB_ENV
38-
39-
echo "RUSTC_WRAPPER=$HOME/.cargo/bin/sccache" >> $GITHUB_ENV
40-
41-
echo "AWS_ACCESS_KEY_ID=AKIAU2WBY6VDVHUO5WSN" >> $GITHUB_ENV
42-
43-
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.SCCACHE_AWS_SECRET }}" >> $GITHUB_ENV
4+
- cron: 0 14 * * 1-5
5+
workflow_dispatch:
446

45-
echo "SCCACHE_BUCKET=sccache-rust" >> $GITHUB_ENV
46-
47-
echo "SCCACHE_S3_USE_SSL=true" >> $GITHUB_ENV
48-
49-
echo "SCCACHE_REGION=us-west-2" >> $GITHUB_ENV
50-
51-
'
52-
- uses: Swatinem/rust-cache@v2
53-
- run: cargo check --all-features
54-
- name: Print sccache stats
55-
run: sccache -s
7+
jobs:
8+
rust-daily:
9+
uses: IronCoreLabs/workflows/.github/workflows/rust-daily.yaml@rust-daily-v0
10+
secrets: inherit

0 commit comments

Comments
 (0)