[algorithms]添加bit操作的一些应用(寻找数组中出现奇数次的一个或者2个元素,主要异或) #78
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-11 # 先与开发机器系统保持一致 | |
steps: | |
# 详见 https://github.com/marketplace/actions/rust-toolchain#example-workflow | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --no-default-features --workspace --exclude vsock-node --exclude study-practice | |
test: | |
name: Test | |
runs-on: macos-latest | |
steps: | |
# 详见 https://github.com/marketplace/actions/rust-toolchain#example-workflow | |
- uses: actions/checkout@v2 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Runtests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features --workspace --exclude vsock-node --exclude study-practice |