name: tests on: push: pull_request: env: CARGO_TERM_COLOR: always jobs: fmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: | sudo apt-get update sudo apt-get install mingw-w64 -y - uses: actions-rust-lang/setup-rust-toolchain@v1 with: target: x86_64-pc-windows-gnu components: rustfmt - name: Rustfmt Check uses: actions-rust-lang/rustfmt@v1 clippy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: | sudo apt-get update sudo apt-get install mingw-w64 -y - uses: actions-rust-lang/setup-rust-toolchain@v1 with: target: x86_64-pc-windows-gnu components: clippy - name: Run clippy run: cargo clippy --target x86_64-pc-windows-gnu build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: | sudo apt-get update sudo apt-get install mingw-w64 -y - uses: actions-rust-lang/setup-rust-toolchain@v1 with: target: x86_64-pc-windows-gnu - name: Build run: cargo build --verbose --release --target x86_64-pc-windows-gnu - name: Create release uses: softprops/action-gh-release@v2 if: startsWith(gitea.ref, 'refs/tags/') with: files: | target/x86_64-pc-windows-gnu/release/space.exe