Moved actions
This commit is contained in:
parent
02c7379972
commit
d81399fb53
@ -1,43 +0,0 @@
|
|||||||
name: Rust-build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Check-out
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install stable toolchain
|
|
||||||
uses: https://github.com/actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Run cargo check
|
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: cargo test
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: cargo build --release
|
|
||||||
|
|
||||||
- name: Configure cargo
|
|
||||||
run: echo ${{ secrets.API_TOKEN_CONFIG }} >> ~/.cargo/credentials.toml
|
|
||||||
run: echo ${{ secrets.CARGO_CONFIG }} >> ~/.cargo/config.toml
|
|
||||||
|
|
||||||
- name: Publish
|
|
||||||
run: cargo publish
|
|
||||||
|
|
||||||
|
|
@ -27,24 +27,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
|
|
||||||
- name: Install nightly toolchain with clippy available
|
|
||||||
uses: https://github.com/actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
components: clippy
|
|
||||||
|
|
||||||
- name: Run cargo clippy
|
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
|
||||||
continue-on-error: true # WARNING: only for this example, remove it!
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: -- -D warnings
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
||||||
|
- name: Configure cargo
|
||||||
|
run: echo ${{ secrets.API_TOKEN_CONFIG }} >> ~/.cargo/credentials.toml
|
||||||
|
run: echo ${{ secrets.CARGO_CONFIG }} >> ~/.cargo/config.toml
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: cargo publish
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user