refactor: enum Action, struct Actions #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cargo Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test_linux: | |
name: Test Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - run: curl --version | |
# - run: type curl | |
# - run: type sh | |
- run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh | |
chmod a+x rustup.sh | |
./rustup.sh -y | |
- run: rustup install nightly | |
- run: rustup override set nightly | |
- run: sudo apt-get update && sudo apt-get install libasound2-dev | |
- run: cargo check | |
- run: cargo test | |
- run: cargo build | |
# | |
# test_macos: | |
# name: Test Mac | |
# strategy: | |
# matrix: | |
# os: [macos-latest] | |
# rust: [stable] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - name: Checkout sources | |
# uses: actions/checkout@v3 | |
# | |
# - name: Install stable toolchain | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# profile: minimal | |
# toolchain: ${{ matrix.rust }} | |
# override: true | |
# components: rustfmt | |
# - uses: Swatinem/rust-cache@v1 | |
# | |
# - name: Run cargo build | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: build | |
# args: --release | |
# | |
# - name: Run cargo check | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: check | |
# | |
# - name: Run cargo test | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: test | |
# | |
# fmt: | |
# name: Rustfmt | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - name: Install latest stable | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# profile: minimal | |
# toolchain: stable | |
# override: true | |
# components: rustfmt | |
# | |
# - name: Enforce formatting | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: fmt | |
# args: --check |