ci: Run apt-get update
GitHub Actions runners updated to Ubuntu 20.04, so run apt-get update to ensure we can install our Linux dependencies (namely libasound2).
This commit is contained in:
parent
b2bc24919a
commit
66b144e49b
|
@ -116,7 +116,9 @@ jobs:
|
|||
|
||||
- name: Install Linux dependencies
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
|
||||
# We need macOS SDK 11.0 to build for aarch64.
|
||||
# GitHub Actions runners have the 11.0 SDK installed, but are still stuck on macOS 10.15.
|
||||
|
|
|
@ -2,9 +2,9 @@ name: Test Rust
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -14,37 +14,39 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
rust_version: ['stable', 'beta', 'nightly']
|
||||
rust_version: ["stable", "beta", "nightly"]
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.rust_version }}
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.rust_version }}
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Install Linux dependencies
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
- name: Install Linux dependencies
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
|
||||
- name: Check clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all --tests -- -D warnings
|
||||
- name: Check clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all --tests -- -D warnings
|
||||
|
||||
- name: Check formatting
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
- name: Check formatting
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
|
Loading…
Reference in New Issue