Skip to content

Commit

Permalink
Fixed runner
Browse files Browse the repository at this point in the history
  • Loading branch information
transistorfet committed Mar 16, 2024
1 parent 1236a2b commit 89c8c3a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 19 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/clippy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
pull_request:
types: [opened, synchronized, reopened, ready_for_review]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read
Expand All @@ -13,11 +13,18 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
with:
toolchain: stable
components: clippy
submodules: true

- name: Install dependencies
run: |
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
- name: Select rust version
run: |
rustup toolchain install 1.60 --profile minimal --no-self-update
rustup default 1.60
- name: Check clippy
run: |
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/rustdoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
pull_request:
types: [opened, synchronized, reopened, ready_for_review]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read
Expand All @@ -13,10 +13,19 @@ jobs:
rustdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
with:
toolchain: stable
submodules: true

- name: Install dependencies
run: |
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
- name: Select rust version
run: |
rm Cargo.lock
rustup toolchain install nightly --profile minimal --no-self-update
rustup default nightly
- name: Build rustdoc
run: |
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/rustfmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
pull_request:
types: [opened, synchronized, reopened, ready_for_review]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read
Expand All @@ -13,11 +13,18 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
with:
toolchain: stable
components: rustfmt
submodules: true

- name: Install dependencies
run: |
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
- name: Select rust version
run: |
rustup toolchain install 1.60 --profile minimal --no-self-update
rustup default 1.60
- name: Check rustfmt
run: |
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
pull_request:
types: [opened, synchronized, reopened, ready_for_review]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read
Expand All @@ -16,11 +16,18 @@ jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
with:
toolchain: stable
target: wasm32-unknown-unknown
submodules: true

- name: Install dependencies
run: |
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
- name: Select rust version
run: |
rustup toolchain install 1.60 --profile minimal --no-self-update
rustup default 1.60
- name: Run tests with default features
run: |
Expand Down

0 comments on commit 89c8c3a

Please sign in to comment.