diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 19f59bc..3ab7466 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,13 +10,27 @@ env: CARGO_TERM_COLOR: always jobs: - build: - + build-win: runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Checkout + uses: actions/checkout@v1 + + - name: Install latest rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + + - name: Build + run: cargo build --all --release + - name: Run tests + run: cargo test --verbose + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: target/release/image_files.exe