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

6
.github/workflows/ci.yml

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

Loading…
Cancel
Save