forked from Tacoman369/MM3D-Randomizer-Dev
-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (36 loc) · 1006 Bytes
/
build-check.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
name: MM3DR Build Check
on:
pull_request:
jobs:
format:
name: Verify Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
# - name: Format Project
# uses: DoozyX/[email protected]
# with:
# source: "./code ./source"
# extensions: 'c,h,cpp,hpp'
# clangFormatVersion: 14
build:
name: Confirm Compilable
runs-on: ubuntu-latest
container:
image: ghcr.io/z3dr/randotools:latest
steps:
- name: Install openssh
run: apt install openssh-client -y
- name: Checkout Project
uses: actions/checkout@v3
with:
token: ${{ secrets.TOKEN }}
ssh-key: ${{ secrets.SSH_KEY }}
submodules: true
- name: Compile Project
run: |
apt install openssh-client -y
eval `ssh-agent -s`
ssh-agent sh -c 'echo "${{ secrets.SSH_KEY }}" | ssh-add -'
make -j