-
Notifications
You must be signed in to change notification settings - Fork 4
77 lines (60 loc) · 2.14 KB
/
build.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
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
74
75
76
77
name: Build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: extractions/setup-just@v2
- name: Setup Rust
run: rustup toolchain install stable --profile minimal
- name: install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v3.1.1/elan-aarch64-apple-darwin.tar.gz | tar xz
./elan-init -y --no-modify-path --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: query clang
run: clang --version
- uses: actions/checkout@v4
- name: build project
run: just build
- name: create release tarball
run: |
tar zcf raylean_macos-aarch64.tar.gz -C .lake/build/bin raylean
- uses: actions/upload-artifact@v4
with:
name: macos-aarch64-binary
path: raylean_macos-aarch64.tar.gz
if-no-files-found: error
build-linux:
runs-on: ubuntu-latest
steps:
- uses: extractions/setup-just@v2
- name: Setup Rust
run: rustup toolchain install stable --profile minimal
- name: Install raylib deps
run: sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev libwayland-dev libxkbcommon-dev
- name: install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v3.1.1/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --no-modify-path --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- name: build project
run: just build
- name: create release tarball
run: |
tar zcf raylean_linux-x86_64.tar.gz -C .lake/build/bin raylean
- uses: actions/upload-artifact@v4
with:
name: linux_x86_64-binary
path: raylean_linux-x86_64.tar.gz
if-no-files-found: error