diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45a78c11..60a4e149 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,6 @@ name: Build sample material on: - schedule: - - cron: '0 0 * * Mon' # Run this job weekly, on Monday midnights push: pull_request: @@ -53,76 +51,4 @@ jobs: with: artifacts: "./rust-exercises-${{ env.slug }}.zip,./rust-exercises-${{ env.slug }}/nrf52-code/boards/dongle-fw/*-fw" allowUpdates: true - updateOnlyUnreleased: true - - build-weekly-beta: - runs-on: ubuntu-20.04 - if: needs.pr-check.outputs.number != null - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v4 - - - name: Install tools - uses: taiki-e/install-action@v2 - with: - tool: mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.7 - - - name: Install targets - run: | - rustup target add thumbv7em-none-eabihf - rustup component add rust-src - rustup component add rustfmt - - - name: Update Beta - run: | - rustup update beta - rustup default beta - - - name: Find slug name - run: | - slug=$(./describe.sh "${GITHUB_REF}") - echo "Building with slug '${slug}'" - echo "slug=${slug}" >> "${GITHUB_ENV}" - - - name: Build and test - env: # Or as an environment variable - HIDDEN_MESSAGE: ${{ secrets.HIDDEN_MESSAGE }} - run: | - ./build.sh "./rust-exercises-${{ env.slug }}" - - build-weekly-nightly: - runs-on: ubuntu-20.04 - if: needs.pr-check.outputs.number != null - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v4 - - - name: Install tools - uses: taiki-e/install-action@v2 - with: - tool: mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.7 - - - name: Install targets - run: | - rustup target add thumbv7em-none-eabihf - rustup component add rust-src - rustup component add rustfmt - - - name: Update Nightly - run: | - rustup update nightly - rustup default nightly - - - name: Find slug name - run: | - slug=$(./describe.sh "${GITHUB_REF}") - echo "Building with slug '${slug}'" - echo "slug=${slug}" >> "${GITHUB_ENV}" - - - name: Build and test - env: # Or as an environment variable - HIDDEN_MESSAGE: ${{ secrets.HIDDEN_MESSAGE }} - run: | - ./build.sh "./rust-exercises-${{ env.slug }}" \ No newline at end of file + updateOnlyUnreleased: true \ No newline at end of file diff --git a/.github/workflows/weekly-canary-build.yml b/.github/workflows/weekly-canary-build.yml new file mode 100644 index 00000000..c67f8ebf --- /dev/null +++ b/.github/workflows/weekly-canary-build.yml @@ -0,0 +1,44 @@ +name: Weekly Canary Build + +on: + schedule: + - cron: '0 0 * * Mon' + +jobs: + weekly-canary-build: + strategy: + matrix: + rust-channel: [stable, beta, nightly] + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v4 + + - name: Install tools + uses: taiki-e/install-action@v2 + with: + tool: mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.7 + + - name: Install targets + run: | + rustup target add thumbv7em-none-eabihf + rustup component add rust-src + rustup component add rustfmt + + - name: Update and set default Rust + run: | + rustup update ${{ matrix.rust-channel }} + rustup default ${{ matrix.rust-channel }} + + - name: Find slug name + run: | + slug=$(./describe.sh "${GITHUB_REF}") + echo "Building with slug '${slug}'" + echo "slug=${slug}" >> "${GITHUB_ENV}" + + - name: Build and test + env: # Or as an environment variable + HIDDEN_MESSAGE: ${{ secrets.HIDDEN_MESSAGE }} + run: | + ./build.sh "./rust-exercises-${{ env.slug }}" \ No newline at end of file