Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release workflow updates for 0.11.0 #522

Merged
merged 5 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading