-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (32 loc) · 1.04 KB
/
publish.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
name: Publish to GitHub
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Setup Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Setup LLVM
run: brew install llvm
- name: Setup Build Script
if: ${{ runner.os != 'Windows' }}
run: chmod +x build.sh
- name: Build
run: ./build.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Mamba
path: |
build/macosx/arm64/release/Jvav
build/windows/x64/release/Jvav.exe