-
-
Notifications
You must be signed in to change notification settings - Fork 20
124 lines (92 loc) · 3.31 KB
/
rust.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Rust
on:
push:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
GODOT_VERSION: 3.2.3
EXPORT_NAME: bitmapflow
defaults:
run:
working-directory: rust
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apt-get update
run: sudo apt-get update
- name: Install dependencies
run: DEBIAN_FRONTEND=noninteractive sudo apt-get install -y clang libclang-dev libopencv-contrib4.2 libopencv-dev curl
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-03-11
components: clippy
override: true
- name: Build
run: cargo build --release --verbose
- name: Clippy
uses: actions-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
toolchain: nightly-2021-03-11
args: --all-features --manifest-path rust/Cargo.toml
# see https://github.com/actions-rs/clippy-check/issues/28
- name: Upload bitmapflow-linux-so
uses: actions/upload-artifact@v2
with:
name: bitmapflow-linux-so
if-no-files-found: error
path: rust/target/release/libbitmapflow_rust.so
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: markdown-link-check
uses: gaurav-nelson/[email protected]
with:
folder-path: .
config-file: .github/workflows/markdown-link-check-config.json
# See https://github.com/aBARICHELLO/godot-ci/blob/master/.github/workflows/godot-ci.yml
export-linux:
needs: build
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.2.3
steps:
# NOTE: checkout must be the VERY FIRST STEP! otherwise it will delete all previous files in the workflow directory!!!
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Apt-get update
run: apt-get update
- name: Install dependencies
run: DEBIAN_FRONTEND=noninteractive apt install -y clang libclang-dev libopencv-contrib4.2 libopencv-dev curl
- name: Download bitmapflow-linux-so
uses: actions/download-artifact@v2
with:
name: bitmapflow-linux-so
path: godot
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# - name: Debug godot export templates
# run: |
# find . -maxdepth 6 -type d -ls
- name: Linux Build
working-directory: godot # TODO the build/linux folder should be in the default directory, not in "godot"
run: |
mkdir -v -p build/linux
godot -v --export "Linux/X11" build/linux/$EXPORT_NAME.x86_64
# - name: Setup tmate session for debugging purposes
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
# sudo: false
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: bitmapflow-linux
path: godot/build/linux