Build Linux Releases #28
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
# .github/workflows/build-linux.yml | |
name: Build Linux Releases | |
on: | |
workflow_dispatch: | |
jobs: | |
build-linux-x64: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install required packages | |
run: sudo apt-get install -y rpm | |
- name: Github checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: get-package-version | |
id: package-version | |
uses: beaconbrigade/[email protected] | |
- name: Install Dependencies | |
run: npm i | |
- name: Build script | |
run: make linux-x64 | |
- name: List packages | |
uses: mathiasvr/[email protected] | |
id: packagelist | |
with: | |
run: node ./build/list_packages.mjs | |
- name: Publish Release | |
run: gh release upload v${{ steps.package-version.outputs.version}} ${{ steps.packagelist.outputs.stdout }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |