diff --git a/.forgejo/workflows/uwu.yaml b/.forgejo/workflows/uwu.yaml index 0534efa..3bde97d 100644 --- a/.forgejo/workflows/uwu.yaml +++ b/.forgejo/workflows/uwu.yaml @@ -1,30 +1,20 @@ on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always - + branches: [main] jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install toolchain - run: | - apt update - apt install --yes curl - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --profile default -y - - name: Build - run: | - $HOME/.cargo/env - cargo build --verbose - - name: Run tests - run: | - $HOME/.cargo/env - cargo test --verbose - + - id: checkout + name: checkout + uses: actions/checkout@v4 + - id: setup-rust + name: setup rust + uses: ningenMe/setup-rustup@v1.1.0 + with: + rust-version: nightly + - id: cargo-build + name: cargo build + run: | + cargo build + shell: bash