Update checkout github action. Clean up workflow formatting.
This commit is contained in:
parent
bcf962c447
commit
3f69770471
|
@ -4,11 +4,11 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clippy-test:
|
clippy-test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
- name: Update apt
|
||||||
|
run: sudo apt update
|
||||||
- name: Install alsa
|
- name: Install alsa
|
||||||
run: sudo apt-get install libasound2-dev
|
run: sudo apt-get install libasound2-dev
|
||||||
- name: Install stable
|
- name: Install stable
|
||||||
|
@ -27,7 +27,7 @@ jobs:
|
||||||
rustfmt-check:
|
rustfmt-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Install stable
|
- name: Install stable
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
@ -42,16 +42,14 @@ jobs:
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
|
|
||||||
cargo-publish:
|
cargo-publish:
|
||||||
|
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }}
|
CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }}
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
- name: Update apt
|
||||||
|
run: sudo apt update
|
||||||
- name: Install alsa
|
- name: Install alsa
|
||||||
run: sudo apt-get install libasound2-dev
|
run: sudo apt-get install libasound2-dev
|
||||||
- name: Run cargo publish for cpal
|
- name: Run cargo publish for cpal
|
||||||
|
@ -68,11 +66,11 @@ jobs:
|
||||||
[ $empty -eq 1 ] || grep -q "is already uploaded" < $CPAL_TMP
|
[ $empty -eq 1 ] || grep -q "is already uploaded" < $CPAL_TMP
|
||||||
|
|
||||||
ubuntu-test:
|
ubuntu-test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
- name: Update apt
|
||||||
|
run: sudo apt update
|
||||||
- name: Install alsa
|
- name: Install alsa
|
||||||
run: sudo apt-get install libasound2-dev
|
run: sudo apt-get install libasound2-dev
|
||||||
- name: Install stable
|
- name: Install stable
|
||||||
|
@ -93,15 +91,12 @@ jobs:
|
||||||
args: --all --all-features --verbose
|
args: --all --all-features --verbose
|
||||||
|
|
||||||
asmjs-wasm32-test:
|
asmjs-wasm32-test:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target: [asmjs-unknown-emscripten, wasm32-unknown-emscripten]
|
target: [asmjs-unknown-emscripten, wasm32-unknown-emscripten]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Install emscripten
|
- name: Install emscripten
|
||||||
run: sudo apt-get install emscripten
|
run: sudo apt-get install emscripten
|
||||||
- name: Install stable
|
- name: Install stable
|
||||||
|
@ -114,15 +109,12 @@ jobs:
|
||||||
run: cargo build --example beep --target ${{ matrix.target }}
|
run: cargo build --example beep --target ${{ matrix.target }}
|
||||||
|
|
||||||
windows-test:
|
windows-test:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [x86_64, i686]
|
version: [x86_64, i686]
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Install ASIO SDK
|
- name: Install ASIO SDK
|
||||||
env:
|
env:
|
||||||
LINK: https://www.steinberg.net/asiosdk
|
LINK: https://www.steinberg.net/asiosdk
|
||||||
|
@ -150,9 +142,8 @@ jobs:
|
||||||
|
|
||||||
macos-test:
|
macos-test:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Install llvm and clang
|
- name: Install llvm and clang
|
||||||
run: brew install llvm
|
run: brew install llvm
|
||||||
- name: Install stable
|
- name: Install stable
|
||||||
|
|
Loading…
Reference in New Issue