rolling #241
This file contains hidden or 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
| # Run scheduled (rolling) jobs on a nightly basis, as your crate may break independently of any | |
| # given PR. E.g., updates to rust nightly and updates to this crates dependencies. | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| schedule: | |
| - cron: '7 7 * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| name: rolling | |
| env: | |
| CARGO_TERM_COLOR: always | |
| ACC_RSS_LIBS: "/home/runner/work/a121-sys/a121-sys/staticlibs" | |
| LIBCLANG_PATH: "/usr/lib/llvm-14/lib" | |
| jobs: | |
| nightly: | |
| runs-on: ubuntu-latest | |
| name: ubuntu / nightly | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| targets: thumbv7em-none-eabihf | |
| components: rustfmt | |
| - name: Install ARM toolchain | |
| uses: carlosperate/arm-none-eabi-gcc-action@v1 | |
| with: | |
| release: '9-2020-q2' | |
| - name: Install LLVM and Clang | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y llvm-14-dev libclang-14-dev clang-14 | |
| - name: Create lib directory | |
| run: mkdir -p "$ACC_RSS_LIBS" | |
| - name: Setup ARM GCC paths | |
| run: | | |
| GCC_ARM_PATH=$(dirname $(dirname $(which arm-none-eabi-gcc))) | |
| echo "ARM_GCC_PATH=${GCC_ARM_PATH}" >> $GITHUB_ENV | |
| echo "CPATH=${GCC_ARM_PATH}/arm-none-eabi/include:${GCC_ARM_PATH}/lib/gcc/arm-none-eabi/9.2.1/include" >> $GITHUB_ENV | |
| - name: cargo check | |
| run: cargo check --target thumbv7em-none-eabihf --features="stub_library,distance,presence" | |
| env: | |
| CC_thumbv7em_none_eabihf: arm-none-eabi-gcc | |
| AR_thumbv7em_none_eabihf: arm-none-eabi-ar | |
| update: | |
| runs-on: ubuntu-latest | |
| name: ubuntu / beta / updated | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install beta | |
| uses: dtolnay/rust-toolchain@beta | |
| with: | |
| targets: thumbv7em-none-eabihf | |
| - name: Install ARM toolchain | |
| uses: carlosperate/arm-none-eabi-gcc-action@v1 | |
| with: | |
| release: '9-2020-q2' | |
| - name: Install LLVM and Clang | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y llvm-14-dev libclang-14-dev clang-14 | |
| - name: Create lib directory | |
| run: mkdir -p "$ACC_RSS_LIBS" | |
| - name: Setup ARM GCC paths | |
| run: | | |
| GCC_ARM_PATH=$(dirname $(dirname $(which arm-none-eabi-gcc))) | |
| echo "ARM_GCC_PATH=${GCC_ARM_PATH}" >> $GITHUB_ENV | |
| echo "CPATH=${GCC_ARM_PATH}/arm-none-eabi/include:${GCC_ARM_PATH}/lib/gcc/arm-none-eabi/9.2.1/include" >> $GITHUB_ENV | |
| - name: cargo update | |
| run: cargo update | |
| - name: cargo check | |
| run: cargo check --target thumbv7em-none-eabihf --features="stub_library,distance,presence" | |
| env: | |
| CC_thumbv7em_none_eabihf: arm-none-eabi-gcc | |
| AR_thumbv7em_none_eabihf: arm-none-eabi-ar | |
| RUSTFLAGS: -D deprecated |