github_actions_test/.github/workflows/test.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 6: mapping key "on" already defined at line 3

31 lines
826 B
YAML

name: Compile Rust Code on Release
on: [push]
on: [push]
jobs:
lint&test:
runs-on: ubuntu-latest
container:
image: rust
steps:
# nodejs is required for the checkout action
- run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
- uses: actions/checkout@v4
- 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/