Skip to content

Commit

Permalink
Set up CI workflows for refactored actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdno committed Oct 1, 2024
1 parent 9b7dba8 commit 5aad90d
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: CI
on:
push:
Expand Down Expand Up @@ -29,7 +28,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

local:
release:
name: Local release
runs-on: ubuntu-latest

Expand All @@ -49,7 +48,7 @@ jobs:
run: docker-compose up -d

- name: Run the local release process for channel ${{ matrix.channel }}
run: ./run.sh ${{ matrix.channel }}
run: ./run.sh release ${{ matrix.channel }}

- name: Validate the generated signatures
run: docker-compose exec -T local /src/local/check-signature.sh ${{ matrix.channel }}
Expand All @@ -62,6 +61,33 @@ jobs:
env:
RUSTUP_DIST_SERVER: http://localhost:9000/static

rustup:
name: Local rustup
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
channel: [stable, beta]

steps:
- name: Clone the source code
uses: actions/checkout@v3

- name: Ensure Rust Stable is up to date
run: rustup self update && rustup update stable

- name: Start the local environment
run: docker-compose up -d

- name: Run the local release process for channel ${{ matrix.channel }}
run: ./run.sh rustup ${{ matrix.channel }}

- name: Update Rustup from the local environment
run: rustup self update
env:
RUSTUP_UPDATE_ROOT: http://localhost:9000/static/rustup

docker:
name: Build Docker image
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5aad90d

Please sign in to comment.