Skip to content

.github/workflows/linux.yml #28

.github/workflows/linux.yml

.github/workflows/linux.yml #28

Workflow file for this run

on:
release:
types: [created]
env:
PYTHON_VERSION: '3.12'
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
arch: ['x64']
steps:
- uses: actions/setup-node@master
with:
node-version: "24.x"
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Ubuntu dependencies
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev
- uses: actions/checkout@v5
with:
ref: ${{ github.ref }}
- name: Environment Information
run: npx envinfo
- name: Build Qode binary
run: node ./qode/build.js
env:
TARGET_ARCH: ${{ matrix.arch }}
- name: Compress files
uses: a7ul/[email protected]
with:
command: c
cwd: ./out/Release
files: |
./qode
outPath: ${{github.event.release.tag_name}}-linux-${{ matrix.arch }}.tar.gz
- uses: actions/upload-artifact@v4
with:
name: ${{github.event.release.tag_name}}-linux-${{ matrix.arch }}.tar.gz
path: ${{github.event.release.tag_name}}-linux-${{ matrix.arch }}.tar.gz
- name: Upload release binaries
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["${{github.event.release.tag_name}}-linux-${{ matrix.arch }}.tar.gz"]'