Skip to content

Commit

Permalink
Merge pull request #522 from str4d/release-workflow-0.11
Browse files Browse the repository at this point in the history
Release workflow updates for 0.11.0
  • Loading branch information
str4d authored Aug 28, 2024
2 parents c5f0d61 + 9343af9 commit 8b0b65e
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@ on:
required: true
default: 'true'

permissions:
attestations: write
contents: write
id-token: write

jobs:
build:
name: Publish for ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [linux, armv7, arm64, windows, macos]
name:
- linux
- armv7
- arm64
- windows
- macos-arm64
- macos-x86_64

include:
- name: linux
os: ubuntu-20.04
Expand Down Expand Up @@ -56,9 +68,14 @@ jobs:
archive_name: rage.zip
asset_suffix: x86_64-windows.zip

- name: macos
- name: macos-arm64
os: macos-latest
archive_name: rage.tar.gz
asset_suffix: arm64-darwin.tar.gz

- name: macos-x86_64
os: macos-13
archive_name: rage.tar.gz
asset_suffix: x86_64-darwin.tar.gz

steps:
Expand Down Expand Up @@ -101,6 +118,11 @@ jobs:
shell: bash
if: matrix.name == 'windows'

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'release/rage/*'

- name: Upload archive as artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -129,11 +151,12 @@ jobs:
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- windows-2019
- windows-2022
- macos-11
- macos-12
- macos-13
- macos-14

include:
- os: ubuntu-20.04
Expand All @@ -146,6 +169,11 @@ jobs:
archive_name: rage.tar.gz
asset_suffix: x86_64-linux.tar.gz

- os: ubuntu-24.04
name: linux
archive_name: rage.tar.gz
asset_suffix: x86_64-linux.tar.gz

- os: windows-2019
name: windows
archive_name: rage.zip
Expand All @@ -156,20 +184,20 @@ jobs:
archive_name: rage.zip
asset_suffix: x86_64-windows.zip

- os: macos-11
- os: macos-12
name: macos
archive_name: rage.tar.gz
asset_suffix: x86_64-darwin.tar.gz

- os: macos-12
- os: macos-13
name: macos
archive_name: rage.tar.gz
asset_suffix: x86_64-darwin.tar.gz

- os: macos-13
- os: macos-14
name: macos
archive_name: rage.tar.gz
asset_suffix: x86_64-darwin.tar.gz
asset_suffix: arm64-darwin.tar.gz

steps:
- name: Download archive
Expand Down Expand Up @@ -281,6 +309,11 @@ jobs:
- name: cargo deb
run: cargo deb --package rage --no-build --target ${{ matrix.target }} ${{ matrix.deb_flags }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'target/${{ matrix.target }}/debian/*.deb'

- name: Upload Debian package as artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 8b0b65e

Please sign in to comment.