Fix/fix rapid deamon #347
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Rust TEST Linux | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- os: ubuntu-20.04 | |
shell: bash | |
runs-on: ${{ matrix.platform.os }} | |
container: | |
image: rust:latest | |
options: --privileged --device /dev/fuse | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
- name: Install npm@9 | |
run: npm i -g npm@9 | |
- name: Show npm version | |
run: npm -v | |
- name: Change directory ownership | |
run: chown -R $(id -un):$(id -gn) . | |
- name: Install sudo | |
run: apt-get update && apt-get install -y sudo libssl-dev libpango1.0-dev nginx psmisc | |
- name: Rust Cache | |
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') }} | |
- name: Install dependencies | |
run: npm i | |
- name: Init CI | |
run: | | |
CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu BUILD_OS=linux BUILD_ARCH=amd64 npm run init:ci | |
- name: Check | |
run: | | |
rustup component add rustfmt clippy | |
cargo fmt -- --check | |
cargo clippy -- -Dwarnings | |
- name: Run Rust test | |
run: RUST_BACKTRACE=1 cargo test --workspace --exclude tokio-tar |