Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Upload, and Release Assets | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write # required for creating release and uploading assets | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-upload: | |
name: Build and Upload | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install deps (Ubuntu) | |
if: runner.os == 'Linux' | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: lttng-tools lttng-modules-dkms babeltrace2 liblttng-ust-dev python3-babeltrace cmake build-essential | |
version: 1.0 | |
- name: Build | |
run: ./build.sh | |
- name: Compress build output | |
run: | | |
tar czf ${{ matrix.os }}-build.tar.gz build/ | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.os }}-build | |
path: ${{ matrix.os }}-build.tar.gz | |
retention-days: 1 | |
create-release: | |
name: Create Release | |
needs: build-and-upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
with: | |
make_latest: true | |
generate_release_notes: true | |
files: | | |
ubuntu-latest-build/ubuntu-latest-build.tar.gz | |
macos-latest-build/macos-latest-build.tar.gz |