Some checks failed
Compile Rust Code on Release / lint&test (push) Failing after 1m35s
28 lines
770 B
YAML
28 lines
770 B
YAML
name: Compile Rust Code on Release
|
|
|
|
on: [push]
|
|
jobs:
|
|
lint&test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:alpine
|
|
steps:
|
|
# nodejs is required for the checkout action
|
|
- uses: actions/checkout@v4
|
|
- run: apk add curl gcc rustup cargo rust
|
|
- run: rustup component add rustfmt clippy
|
|
- run: cargo fmt -- --check
|
|
- run: cargo clippy -- -D warnings
|
|
- run: cargo check
|
|
- run: cargo test
|
|
- run: cargo build --release
|
|
- name: Package Artifacts
|
|
run: |
|
|
mkdir -p artifacts
|
|
cp target/release/wololo artifacts/
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: rust-release-artifacts
|
|
path: artifacts/
|