diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f38e761..77b1138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,4 @@ name: Rust Multi-Arch Build - on: push: branches: @@ -19,11 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - override: true + run: curl https://sh.rustup.rs -sSf | sh -s -- -y - name: Install cross run: cargo install cross - name: Test binary @@ -42,17 +37,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - override: true + run: curl https://sh.rustup.rs -sSf | sh -s -- -y - name: Install cross run: cargo install cross - name: Build binary run: cross build --target ${{ matrix.target }} --release - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.target }} path: target/${{ matrix.target }}/release/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1b5643c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Tag and Release +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + body: ${{ steps.tag_version.outputs.changelog }} \ No newline at end of file