Release v1.5.0 (#1062) #2159
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: Tools | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release/*' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- 'master' | |
- 'release/*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
# 29 has glibc-2.28, compatible >= el8, fc, ubuntu 20.04 | |
container: fedora:29 | |
steps: | |
- name: Install build deps | |
run: | | |
dnf groupinstall -y "Development Tools" | |
dnf install -y dbus-devel audit-libs-devel clang | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: 1.79.0 | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Build tools | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --bins --release | |
- name: Export files | |
run: | | |
mkdir /tmp/tools | |
mv target/release/tdb /tmp/tools/tdb | |
mv target/release/faprofiler /tmp/tools/faprofiler | |
- name: Archive Tools | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fapolicy-analyzer-tools | |
path: /tmp/tools/* | |
- name: Release artifacts | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
tag_name: ${{ steps.tag_name.outputs.VERSION }} | |
prerelease: ${{ startsWith(github.ref, 'refs/tags/v0') || contains(github.ref, 'rc') }} | |
draft: true | |
files: /tmp/tools/* |