-
Notifications
You must be signed in to change notification settings - Fork 50
39 lines (35 loc) · 990 Bytes
/
ubuntu.yaml
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
name: Linux
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
# - uses: actions/checkout@v1
# - uses: xmake-io/github-action-setup-xmake@v1
# with:
# xmake-version: branch@master
# actions-cache-folder: '.xmake-cache'
- name: Installation
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc gcc g++ wget
g++ -v
wget https://github.com/xmake-io/xmake/releases/download/v2.8.1/xmake-v2.8.1.xz.run
chmod 777 xmake-v2.8.1.xz.run
./xmake-v2.8.1.xz.run
export XMAKE_ROOT="y"
source ~/.xmake/profile
xmake --version
- name: checkout
uses: actions/checkout@v3
- name: build
run: |
export XMAKE_ROOT="y"
source ~/.xmake/profile
xmake build -y
xmake install -o .
cd bin
ldd cpp-freegpt-webui