-
Notifications
You must be signed in to change notification settings - Fork 172
41 lines (38 loc) · 1.05 KB
/
macos-clang.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
38
39
40
41
# Workflow's name
name: macos-clang
# Run this workflow every time a new commit pushed to your repository
on: [push, pull_request]
jobs:
macos-clang:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup premake
uses: abel0b/setup-premake@v2.2
with:
version: "5.0.0-beta1"
- name: Build
run: |
premake5 gmake --cc=clang
make -j2 config=release
- name: Test
run: chmod +x moon && ./moon test/main_test.lua
- name: Publish
run: |
mkdir publish
cp -r lualib publish/
cp -r service publish/
cp -r example publish/
cp moon publish/
cd publish
tar -zcvf darwin-amd64.tar.gz ./*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: publish/darwin-amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}