forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (44 loc) · 1.32 KB
/
linux.yml
File metadata and controls
49 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
arch: ['x64']
steps:
- uses: actions/setup-node@master
with:
node-version: "24.x"
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Ubuntu dependencies
run: sudo apt-get install libgtk-3-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Build Qode binary
run: node ./qode/build.js
env:
TARGET_ARCH: ${{ matrix.arch }}
- name: Compress files
uses: a7ul/tar-action@v1.0.2
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/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["${{github.event.release.tag_name}}-linux-${{ matrix.arch }}.tar.gz"]'