This repository was archived by the owner on Apr 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (68 loc) · 2.16 KB
/
release.yml
File metadata and controls
73 lines (68 loc) · 2.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release
on:
release:
types: [published]
permissions:
contents: write
jobs:
windows-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
package-cache: true
actions-cache-key: ${{ runner.os }}-xmake-${{ hashFiles('xmake.lua') }}
- name: Build
run: xmake -y
- name: Rename binary
run: mv build/windows/x64/release/arge.exe arge-windows-x86_64.exe
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: arge-windows-x86_64.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux-release:
runs-on: ubuntu-latest
steps:
- name: Installation
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev
- uses: actions/checkout@v6
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
package-cache: true
actions-cache-key: ${{ runner.os }}-xmake-${{ hashFiles('xmake.lua') }}
- name: Build
run: xmake f -p linux -a x86_64 --sdk=/usr/bin --cc=gcc-14 --cxx=g++-14 -y && xmake -y
- name: Rename binary
run: mv build/linux/x86_64/release/arge arge-linux-x86_64
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: arge-linux-x86_64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
macos-release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
package-cache: true
actions-cache-key: ${{ runner.os }}-xmake-${{ hashFiles('xmake.lua') }}
- name: Build
run: xmake -y
- name: Rename binary
run: mv build/macosx/arm64/release/arge arge-macos-arm64
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: arge-macos-arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}