Skip to content

Commit

Permalink
Switch to reusable workflow (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
giarc3 authored Aug 17, 2023
1 parent 3b32859 commit be182bd
Showing 1 changed file with 7 additions and 52 deletions.
59 changes: 7 additions & 52 deletions .github/workflows/rust-daily.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,10 @@
# DO NOT EDIT THIS FILE.
# Instead, edit the jsonpatch file (actually YAML) in .github/rust-daily-patch.yaml
# For docs, see github-actions in the IronCoreLabs/depot repo.

name: Rust Daily
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
'on':
on:
schedule:
- cron: 0 14 * * 2-5
workflow_dispatch: null
jobs:
cargo-check:
runs-on: ubuntu-22.04
strategy:
matrix:
toolchain:
- stable
- beta
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Install sccache
uses: IronCoreLabs/[email protected]
with:
crate: sccache
accesskey: AKIAU2WBY6VDTC563V7G
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
os: ubuntu-22.04
version: latest
- name: Setup sccache env variables
run: 'echo "CC=$(which cc)" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=$HOME/.cargo/bin/sccache" >> $GITHUB_ENV
echo "AWS_ACCESS_KEY_ID=AKIAU2WBY6VDVHUO5WSN" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.SCCACHE_AWS_SECRET }}" >> $GITHUB_ENV
- cron: 0 14 * * 1-5
workflow_dispatch:

echo "SCCACHE_BUCKET=sccache-rust" >> $GITHUB_ENV
echo "SCCACHE_S3_USE_SSL=true" >> $GITHUB_ENV
echo "SCCACHE_REGION=us-west-2" >> $GITHUB_ENV
'
- uses: Swatinem/rust-cache@v2
- run: cargo check --all-features
- name: Print sccache stats
run: sccache -s
jobs:
rust-daily:
uses: IronCoreLabs/workflows/.github/workflows/rust-daily.yaml@rust-daily-v0
secrets: inherit

0 comments on commit be182bd

Please sign in to comment.