github_actions_test/.github/workflows/test.yml
semubico b898faa2d5
Some checks failed
Compile Rust Code on Release / lint&test (push) Failing after 1m35s
Update .github/workflows/test.yml
2025-07-11 17:29:04 +02:00

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/