forked from actboy168/lua-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.48 KB
/
build.yml
File metadata and controls
48 lines (48 loc) · 1.48 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
name: build
on:
push:
branches:
- linux-static-linkage
pull_request:
branches:
- linux-static-linkage
jobs:
compile:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
#- os: windows-latest
# platform: win32-x64
- os: ubuntu-latest
platform: linux-x64
- os: ubuntu-24.04-arm
platform: linux-arm64
#- os: macos-latest
# platform: darwin-x64
#- os: macos-latest
# platform: darwin-arm64
steps:
- uses: actions/checkout@v4
with:
submodules : recursive
- uses: actboy168/setup-luamake@master
- if: matrix.platform == 'linux-x64' || matrix.platform == 'linux-arm64'
run: |
sudo apt update && sudo apt install -y libiberty-dev
- run: luamake lua compile/download_deps.lua
- run: luamake -mode release -platform ${{ matrix.platform }}
#- run: npm install -g @vscode/vsce ovsx
#- run: npx vsce publish --target ${{ matrix.platform }} -p ${{ secrets.VSCE_KEY }}
# working-directory: publish
# continue-on-error: true
#- run: npx ovsx publish --target ${{ matrix.platform }} -p ${{ secrets.OVSX_KEY }}
# working-directory: publish
# continue-on-error: true
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-${{matrix.platform}}
path: publish/
retention-days: 7 # Keep the artifact for 7 days