-
-
Notifications
You must be signed in to change notification settings - Fork 26
66 lines (62 loc) · 2.58 KB
/
linux_builds.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
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
name: 🐧 Linux Builds
on:
workflow_call:
env:
GODOT4_BIN: godot
jobs:
linux:
runs-on: ubuntu-20.04
name: ${{ matrix.dimensions.short }} ${{ matrix.precision }} ${{ matrix.features.name }} ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
#arch: ["i686-unknown-linux-gnu", "aarch64-unknown-linux-gnu"]
arch: ["x86_64-unknown-linux-gnu"]
precision: [single] #, double]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]
steps:
- uses: actions/checkout@v4
#- uses: chickensoft-games/setup-godot@v1
# name: 🤖 Setup Godot
# with:
# version: 4.3.0
# use-dotnet: false
#- name: 🔬 Verify Setup
# run: |
# godot --version
# which godot
# GODOT4_BIN=godot
- name: "Install dependencies"
shell: sh
run: |
sudo apt-get update
sudo apt-get install libunwind-dev
sudo apt-get install build-essential
sudo apt-get install pkg-config
sudo apt-get install libssl-dev
sudo apt-get install zlib1g-dev
- name: Build
uses: ./.github/actions/build
with:
arch: ${{ matrix.arch }}
features: ${{ matrix.features.feature }},${{ matrix.precision }}-${{ matrix.dimensions.feature }}
- name: Copy to bin
shell: sh
run: |
mv target/release/libgodot_rapier.so bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.linux.${{ matrix.arch }}.so
mv target/release/libgodot_rapier.a bin${{ matrix.dimensions.short }}/addons/godot-rapier${{ matrix.dimensions.short }}/bin/libgodot_rapier.linux.${{ matrix.arch }}.a
- name: Upload
uses: actions/upload-artifact@v4
with:
name: godot-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch}}
path: |
bin${{ matrix.dimensions.short }}/**/*.so
if-no-files-found: error
- name: Upload Static
uses: actions/upload-artifact@v4
with:
name: static-rapier-${{ matrix.dimensions.short }}-${{ matrix.precision }}-${{ matrix.features.name }}-${{ matrix.arch}}
path: |
bin${{ matrix.dimensions.short }}/**/*.a
if-no-files-found: error