-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.01 KB
/
master.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
name: build
on:
push:
branch:
- master
jobs:
# clang-format:
# runs-on: ubuntu-20.04
# steps:
# - name: checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: clang-format
# run: |
# git submodule update --init --recursive
# docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -e gtitles.c -e gtitles.h -e SDL_FontCache.c -e SDL_FontCache.h -r ./src ./include
build-binary:
name: Build binary
runs-on: ubuntu-20.04
# needs: clang-format
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: build artifacts
run: |
docker build . -t builder
echo ${{ secrets.ENC_KEY }} > encryptKeyWith
docker run --rm -v ${PWD}:/project builder python3 build.py
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: soh
path: out/*
if-no-files-found: error