v1.1.3 #25
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: "Release", | |
on: { "release": { types: ["published"] } }, | |
jobs: { | |
"release": { | |
name: "Release", | |
strategy: { | |
fail-fast: true, | |
matrix: { | |
"target": ["x86_64-unknown-linux-gnu"], | |
}, | |
}, | |
runs-on: "ubuntu-latest", | |
env: { | |
"archive_name": "rofi-bw-${{ github.ref_name }}-${{ matrix.target }}.tar.gz", | |
}, | |
steps: [ | |
{ | |
name: "Checkout", | |
uses: "actions/checkout@v3", | |
}, | |
{ | |
name: "Install Rust", | |
uses: "actions-rs/toolchain@v1", | |
with: { | |
toolchain: "stable", | |
profile: "minimal", | |
target: "${{ matrix.target }}", | |
}, | |
}, | |
{ | |
name: "Install packages", | |
run: "sudo apt install libcairo2-dev libdbus-1-dev libicu-dev libpango1.0-dev llvm", | |
}, | |
{ | |
name: "Build", | |
run: "cargo dev build --release", | |
}, | |
{ | |
name: "Make archive", | |
run: "tar cvzf ${{ env.archive_name }} build install.sh", | |
}, | |
{ | |
name: "Upload release archive", | |
uses: "softprops/action-gh-release@v1", | |
with: { files: "${{ env.archive_name }}" }, | |
}, | |
], | |
}, | |
}, | |
} |