Beta #149
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: Beta | |
# On every Sunday at 01:03 | |
on: | |
schedule: | |
- cron: '3 1 * * 0' | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
lint: | |
name: lint and format check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-beta | |
- name: Install cargo | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: beta | |
profile: minimal | |
components: rustfmt, clippy | |
override: true | |
- name: Format check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
- name: Lint check | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: -- -D warnings -A dead_code -A improper_ctypes_definitions | |
rust_test: | |
name: cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-beta | |
- name: Install required libs (Ubuntu) | |
run: sudo apt-get install libxkbcommon-dev | |
- name: Install cargo | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: beta | |
profile: minimal | |
override: true | |
- name: Run rust test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features capi |