-
Notifications
You must be signed in to change notification settings - Fork 40
37 lines (35 loc) · 1016 Bytes
/
ubuntu.yml
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
name: Ubuntu
on:
push:
branches: [ main ]
tags: 'v*.*.*'
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') || !contains(github.event.head_commit.message, '[skip CI]')"
steps:
- uses: actions/checkout@v2
- name: build-test
run: |
sudo apt install -y lua5.4 liblua5.4-dev luarocks
sudo luarocks --lua-version 5.4 install busted
sudo luarocks --lua-version 5.4 make
make test
- name: pack
if: startsWith(github.ref, 'refs/tags/')
run: |
make clean
make release
(cd bin/release && zip -r ../../yue-linux-x86_64.zip ./yue)
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./yue-linux-x86_64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}