Skip to content

Commit

Permalink
workflows: Fix the Linux container build
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmatrix committed Jun 12, 2021
1 parent 3a7b846 commit 3788dd0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@ jobs:
#- name: Get submodules
# run: git submodule update --init --depth 1

- name: Install Rust
uses: hecrj/setup-rust-action@master
with:
rust-version: stable
- name: Prepare Rustup
run: (cd /github/home && ln -s /root/.cargo)

- name: Update Rustup
run: rustup self update

- name: Update Rust
run: rustup update

- name: Configure Rust Toolchain
run: rustup default stable

- name: Install Clippy
run: rustup component add clippy
Expand Down Expand Up @@ -64,10 +71,17 @@ jobs:
#- name: Get submodules
# run: git submodule update --init --depth 1

- name: Install Rust
uses: hecrj/setup-rust-action@master
with:
rust-version: beta
- name: Prepare Rustup
run: (cd /github/home && ln -s /root/.cargo)

- name: Update Rustup
run: rustup self update

- name: Update Rust
run: rustup update

- name: Configure Rust Toolchain
run: rustup default beta

- name: Install Clippy
run: rustup component add clippy
Expand Down
15 changes: 11 additions & 4 deletions mk-workflows/src/templates/linux-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@ steps:
#- name: Get submodules
# run: git submodule update --init --depth 1

- name: Install Rust
uses: hecrj/setup-rust-action@master
with:
rust-version: $[[rustToolchain]]
- name: Prepare Rustup
run: (cd /github/home && ln -s /root/.cargo)

- name: Update Rustup
run: rustup self update

- name: Update Rust
run: rustup update

- name: Configure Rust Toolchain
run: rustup default $[[rustToolchain]]

- name: Install Clippy
run: rustup component add clippy

0 comments on commit 3788dd0

Please sign in to comment.