Install hub
, missing from latest GHA image
#61
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: Main CI Workflow | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
tags: '*' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cleanup | |
run: sudo rm -rf "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY" | |
- name: Install prerequisites | |
run: sudo apt install make curl zip unzip check -qq | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Build | |
run: sudo make | |
- name: Upload artifacts | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
sudo apt install -y hub | |
artifacts="-a ./void-x86_64.zip -a ./void-x86_64-musl.zip -a ./void-aarch64.zip -a void-aarch64-musl.zip" | |
tag_name="${GITHUB_REF#refs/tags/}" | |
hub release create $artifacts -m "$tag_name" "$tag_name" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |