diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abd168f..2ccd4be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: tags: [ '[0-9]+.[0-9]+*' ] jobs: - build: + linux: runs-on: ubuntu-latest steps: - name: Checkout sources @@ -19,6 +19,34 @@ jobs: name: linux path: target/release/pbls + windows: + runs-on: windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Build release binary + run: cargo build --release --locked + + - uses: actions/upload-artifact@v4 + with: + name: windows + path: target/release/pbls + + mac: + runs-on: macos-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Build release binary + run: cargo build --release --locked + + - uses: actions/upload-artifact@v4 + with: + name: macos + path: target/release/pbls + # publish: # name: Publish # needs: [build] diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..65db3e3 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "stable" +components = ["rustfmt", "rust-src", "clippy"] +