Skip to content

ci: use macos-15-intel for release matrix #2

ci: use macos-15-intel for release matrix

ci: use macos-15-intel for release matrix #2

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
build:
name: build (${{ matrix.target }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: target/release/rexos
- os: macos-15-intel
target: x86_64-apple-darwin
bin: target/release/rexos
- os: macos-14
target: aarch64-apple-darwin
bin: target/release/rexos
- os: windows-latest
target: x86_64-pc-windows-msvc
bin: target/release/rexos.exe
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Build (release)
run: cargo build --release -p rexos-cli --locked
- name: Package
run: python scripts/package_release.py --version "${{ github.ref_name }}" --target "${{ matrix.target }}" --bin "${{ matrix.bin }}" --out-dir dist
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.target }}
path: |
dist/*.tar.gz
dist/*.zip
dist/*.sha256
if-no-files-found: error
publish:
name: publish (github release)
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: List assets
run: ls -la dist
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/**
generate_release_notes: true