Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Jan 25, 2025
1 parent 512fbea commit fba771b
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 41 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ jobs:
tool: cargo-nextest
- run: cargo make check --features "${{ matrix.features }}"

miri:
name: test-with-miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/setup-build
with:
toolchain: nightly
components: miri
- uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- run: cargo make miri

build-docs:
name: build-docs
Expand All @@ -65,3 +80,24 @@ jobs:
cargo +nightly docs-rs -pautd3-link-twincat
cargo +nightly docs-rs -pautd3-modulation-audio-file
cargo +nightly docs-rs -pautd3-protobuf
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/setup-build
with:
components: llvm-tools
- uses: SierraSoftworks/setup-grcov@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: latest
- run: cargo make cov lcov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage
disable_search: true
fail_ci_if_error: true
39 changes: 0 additions & 39 deletions .github/workflows/coverage.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- run: |
cargo make -e CARGO_TOOLCHAIN=${{ inputs.channel }} miri
- run: cargo make -e CARGO_TOOLCHAIN=${{ inputs.channel }} miri
43 changes: 43 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,24 @@ jobs:
- if: ${{ needs.test.result == 'failure' || needs.test.result == 'cancelled' }}
run: exit 1

miri:
needs: changed-files
if: ${{ needs.changed-files.outputs.src == 'true' }}
name: test-with-miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/setup-build
with:
toolchain: nightly
components: miri
- uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- run: cargo make miri

build-docs:
needs: changed-files
if: ${{ needs.changed-files.outputs.src == 'true' }}
Expand All @@ -93,10 +111,35 @@ jobs:
cargo +nightly docs-rs -pautd3-modulation-audio-file
cargo +nightly docs-rs -pautd3-protobuf
coverage:
needs: changed-files
if: ${{ needs.changed-files.outputs.src == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/setup-build
with:
components: llvm-tools
- uses: SierraSoftworks/setup-grcov@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: latest
- run: cargo make cov lcov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage
disable_search: true
fail_ci_if_error: true

auto-merge:
needs:
- all-tests-passed
- miri
- build-docs
- coverage
permissions:
pull-requests: write
contents: write
Expand Down

0 comments on commit fba771b

Please sign in to comment.