Check crate semver on pull request #1733
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
on: | |
push: | |
branches: | |
- 'master' | |
- 'release/*' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- 'master' | |
- 'release/*' | |
name: Tools | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
# 28 has glibc-2.27, compatible >= el8, fc, ubuntu 18.04 | |
container: fedora:28 | |
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.66.1 | |
- uses: actions/checkout@v3 | |
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/rulec /tmp/tools/rulec | |
mv target/release/faprofiler /tmp/tools/faprofiler | |
- name: Archive Tools | |
uses: actions/upload-artifact@v3 | |
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/* |