Browse Source

Checkout branch before trying to use its code

pull/109/head
Ian Chamberlain 2 years ago
parent
commit
38d89bd170
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 5
      .github/actions/setup/action.yml
  2. 6
      .github/workflows/ci.yml

5
.github/actions/setup/action.yml

@ -18,16 +18,13 @@ runs: @@ -18,16 +18,13 @@ runs:
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
- name: Checkout branch
uses: actions/checkout@v2
- name: Setup default Rust toolchain
# Use this helper action so we get matcher support
# https://github.com/actions-rust-lang/setup-rust-toolchain/pull/15
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt, rust-src
toolchain: ${{ matrix.toolchain }}
toolchain: ${{ inputs.toolchain }}
- name: Install build tools for host
shell: bash

6
.github/workflows/ci.yml

@ -27,6 +27,9 @@ jobs: @@ -27,6 +27,9 @@ jobs:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
steps:
- name: Checkout branch
uses: actions/checkout@v2
- uses: ./.github/actions/setup
with:
toolchain: ${{ matrix.toolchain }}
@ -51,6 +54,9 @@ jobs: @@ -51,6 +54,9 @@ jobs:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
steps:
- name: Checkout branch
uses: actions/checkout@v2
- uses: ./.github/actions/setup
with:
toolchain: ${{ matrix.toolchain }}

Loading…
Cancel
Save