diff --git a/.github/workflows/rust-daily.yaml b/.github/workflows/rust-daily.yaml index 4f85175..2a0d2f8 100644 --- a/.github/workflows/rust-daily.yaml +++ b/.github/workflows/rust-daily.yaml @@ -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/rust-install@v0.1.0 - 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