-
Notifications
You must be signed in to change notification settings - Fork 29
109 lines (83 loc) · 2.58 KB
/
push-checks.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
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
name: Push Checks
on: [push]
jobs:
docker:
name: Verify that Docker can build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Dockerfile
run: docker compose build
openscad-node:
name: Verify that OpenSCAD keycap scripts work (Node.js)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
- name: Just make npm work
run: npm i @rollup/rollup-linux-x64-gnu
- name: Install npm dependencies
run: npm install --omit=optional
- name: Install openscad
run: sudo apt-get update && sudo apt-get install -y openscad
- name: Compile Code
run: make ci-setup build
- name: Build simple keycaps
run: OPENSCAD=$(which openscad) make keycaps-simple
openscad-bun:
name: Verify that OpenSCAD keycap scripts work (Bun/Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: canary
- name: Install npm dependencies
run: bun install # --frozen-lockfile
- name: Install openscad
run: sudo apt-get update && sudo apt-get install -y openscad
- name: Compile Code
run: make ci-setup build
- name: Build simple keycaps
run: OPENSCAD=$(which openscad) make keycaps-simple
setup-linux-bun:
name: Verify Set up (Bun/Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Quickstart
# Give the process 3 chances to work
run: make quickstart || make quickstart || make quickstart
# setup-windows-bun:
# name: Verify Set up (Bun/Windows)
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/setup-bun@v1
# with:
# bun-version: latest
# - name: Install npm dependencies
# run: bun install
# - name: Install make
# run: choco install make
# - name: Quickstart
# run: make quickstart
# setup-node-bun:
# name: Verify Set up (Node/Windows)
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 21
# - name: Install npm dependencies
# run: npm install
# - name: Install make
# run: choco install make
# - name: Parts
# run: make ci-setup parts
# - name: Quickstart
# run: make quickstart