bump to v27.0.0-rc.6 #27
Workflow file for this run
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: build | |
on: | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
changed-files: | |
name: changed-files | |
runs-on: ubuntu-latest | |
outputs: | |
src: ${{ steps.changed-files-yaml.outputs.src_any_changed }} | |
lightweight: ${{ steps.changed-files-yaml.outputs.lightweight_any_changed }} | |
miri: ${{ steps.changed-files-yaml.outputs.miri_any_changed }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: changed-files-yaml | |
uses: tj-actions/changed-files@v44 | |
with: | |
files_yaml: | | |
src: | |
- '**/*.rs' | |
- '**/Cargo.toml' | |
lightweight: | |
- Cargo.toml | |
- autd3-protobuf/Cargo.toml | |
- autd3-protobuf/**/*.rs | |
- autd3-protobuf/**/*.proto | |
miri: | |
- autd3-driver/Cargo.toml | |
- autd3-driver/**/*.rs | |
- autd3-firmware-emulator/Cargo.toml | |
- autd3-firmware-emulator/**/*.rs | |
- autd3-gain-holo/Cargo.toml | |
- autd3-gain-holo/**/*.rs | |
- autd3-link-soem/Cargo.toml | |
- autd3-link-soem/**/*.rs | |
- autd3-link-twincat/Cargo.toml | |
- autd3-link-twincat/**/*.rs | |
- autd3-protobuf/Cargo.toml | |
- autd3-protobuf/**/*.rs | |
test: | |
needs: changed-files | |
name: test-on-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
- uses: ./.github/actions/setup-build | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
with: | |
os: ${{ matrix.os }} | |
- run: | | |
python3 build.py build | |
python3 build.py test | |
shell: bash | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
test-on-arm: | |
needs: changed-files | |
name: test-on-${{ matrix.os }}-${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
arch: arm32 | |
- os: ubuntu-latest | |
arch: aarch64 | |
- os: windows-latest | |
arch: aarch64 | |
steps: | |
- uses: actions/checkout@v4 | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
- uses: ./.github/actions/setup-build | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
with: | |
os: ${{ matrix.os }} | |
arch: ${{ matrix.arch }} | |
- run: | | |
python3 build.py build --arch ${{ matrix.arch }} --no-examples | |
shell: bash | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
test-lightweight: | |
needs: changed-files | |
if: ${{ needs.changed-files.outputs.lightweight == 'true' }} | |
name: test-lightweight | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-build | |
with: | |
os: ubuntu-latest | |
- run: | | |
python3 build.py build --features "lightweight async-trait" | |
python3 build.py test --features "lightweight async-trait" | |
shell: bash | |
test-capi: | |
needs: changed-files | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
name: test-capi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-build | |
with: | |
os: ubuntu-latest | |
- run: | | |
python3 build.py build --features "capi" --no-example | |
python3 build.py test --features "capi" | |
shell: bash | |
test-unity: | |
needs: changed-files | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
name: test-unity | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-build | |
with: | |
os: ubuntu-latest | |
- run: | | |
python3 build.py build --features "use_meter left_handed" | |
python3 build.py test --features "use_meter left_handed" | |
shell: bash | |
miri: | |
needs: changed-files | |
if: ${{ needs.changed-files.outputs.miri == 'true' }} | |
name: test-with-miri | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-build | |
with: | |
os: ubuntu-latest | |
toolchain: nightly | |
components: miri | |
- run: | | |
python3 build.py test --miri | |
lint: | |
needs: changed-files | |
if: ${{ needs.changed-files.outputs.src == 'true' }} | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-build | |
with: | |
os: ubuntu-latest | |
- run: | | |
python3 build.py lint | |
python3 build.py lint --features "capi" --no-example | |
python3 build.py lint --features "lightweight async-trait" | |
python3 build.py lint --features "left_handed use_meter" | |
auto-merge: | |
needs: | |
- test | |
- test-on-arm | |
- test-lightweight | |
- test-capi | |
- test-unity | |
- miri | |
- lint | |
permissions: | |
pull-requests: write | |
contents: write | |
runs-on: ubuntu-latest | |
if: ${{ always() && !cancelled() && !failure() && github.actor == 'dependabot[bot]' }} | |
steps: | |
- run: gh pr merge --rebase --auto "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |