bump versions to 20.0.0 #18
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: | |
push: | |
branches: | |
- 'develop' | |
pull_request: | |
types: [opened, reopened, review_requested] | |
jobs: | |
check-src: | |
runs-on: ubuntu-latest | |
name: check if src files changed | |
outputs: | |
status: ${{ steps.changed-files.outputs.modified_files }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: tj-actions/changed-files@v40 | |
id: changed-files | |
with: | |
files: | | |
.github/actions/setup-build/action.yml | |
.github/workflows/build.yml | |
./**/*.rs | |
./*.toml | |
./**/*.toml | |
./**/*.proto | |
build-src: | |
needs: check-src | |
name: build-src-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
if: needs.check-src.outputs.status | |
uses: ./.github/actions/setup-build | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
os: ${{ matrix.os }} | |
- name: Rust cache | |
if: needs.check-src.outputs.status | |
uses: swatinem/rust-cache@v2 | |
- name: Test src on ${{ matrix.os }} | |
if: needs.check-src.outputs.status | |
run: | | |
python3 build.py build --all | |
python3 build.py test --all | |
shell: bash | |
test-src-for-unity: | |
needs: check-src | |
name: test-src-for-unity-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
if: needs.check-src.outputs.status | |
uses: ./.github/actions/setup-build | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
os: ${{ matrix.os }} | |
- name: Rust cache | |
if: needs.check-src.outputs.status | |
uses: swatinem/rust-cache@v2 | |
- name: Test src for unity on ${{ matrix.os }} | |
if: needs.check-src.outputs.status | |
run: | | |
python3 build.py test --all --features "single_float use_meter" | |
shell: bash | |
build-linux-arm32-src: | |
needs: check-src | |
name: build-src-linux-arm32 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
if: needs.check-src.outputs.status | |
uses: ./.github/actions/setup-build | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
os: ubuntu-latest | |
arch: 'arm32' | |
- name: Rust cache | |
if: needs.check-src.outputs.status | |
uses: swatinem/rust-cache@v2 | |
- name: Test src on ${{ matrix.os }} | |
if: needs.check-src.outputs.status | |
run: | | |
python3 build.py build --all --arch arm32 --no-examples | |
build-linux-aarch64-src: | |
needs: check-src | |
name: build-src-linux-aarch64 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
if: needs.check-src.outputs.status | |
uses: ./.github/actions/setup-build | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
os: ubuntu-latest | |
arch: 'aarch64' | |
- name: Rust cache | |
if: needs.check-src.outputs.status | |
uses: swatinem/rust-cache@v2 | |
- name: Test src on ${{ matrix.os }} | |
if: needs.check-src.outputs.status | |
run: | | |
python3 build.py build --all --arch arm32 --no-examples | |
lint-src: | |
needs: check-src | |
name: lint-src | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
if: needs.check-src.outputs.status | |
uses: ./.github/actions/setup-build | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
os: ubuntu-latest | |
- name: Rust cache | |
if: needs.check-src.outputs.status | |
uses: swatinem/rust-cache@v2 | |
- name: lint src | |
if: needs.check-src.outputs.status | |
run: | | |
python3 build.py lint --all |