parent
da6e091e69
commit
792bf8e074
|
@ -1,30 +1,20 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [main]
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- id: checkout
|
||||||
- name: Install toolchain
|
name: checkout
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
apt update
|
- id: setup-rust
|
||||||
apt install --yes curl
|
name: setup rust
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --profile default -y
|
uses: ningenMe/setup-rustup@v1.1.0
|
||||||
- name: Build
|
with:
|
||||||
run: |
|
rust-version: nightly
|
||||||
$HOME/.cargo/env
|
- id: cargo-build
|
||||||
cargo build --verbose
|
name: cargo build
|
||||||
- name: Run tests
|
run: |
|
||||||
run: |
|
cargo build
|
||||||
$HOME/.cargo/env
|
shell: bash
|
||||||
cargo test --verbose
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue