fix: fix potential UB caused by unsafe and future movement #645
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, pull_request ] | |
jobs: | |
build: | |
name: monolake-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- run: sudo apt-get install libssl-dev pkg-config | |
- name: Run cargo build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Run cargo build with openid feature | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --features openid | |
test: | |
name: monolake-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- run: sudo apt-get install libssl-dev pkg-config | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: Run cargo test with openid feature | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features openid | |
format: | |
name: monolake-format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- run: sudo apt-get install libssl-dev pkg-config | |
- name: Run cargo build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: monolake-clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- run: sudo apt-get install libssl-dev pkg-config | |
- name: Run cargo build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings |