Commit 6914d41 1 parent 3b17c8b commit 6914d41 Copy full SHA for 6914d41
File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 6
6
clang-format :
7
7
runs-on : ubuntu-22.04
8
8
steps :
9
- - uses : actions/checkout@v2
9
+ - uses : actions/checkout@v3
10
10
- name : clang-format
11
11
run : |
12
- docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./src
12
+ docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./src
13
+ check-build-with-logging :
14
+ runs-on : ubuntu-22.04
15
+ needs : clang-format
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - name : build binary with logging
19
+ run : |
20
+ docker build . -t builder
21
+ docker run --rm -v ${PWD}:/project builder make DEBUG=VERBOSE
22
+ docker run --rm -v ${PWD}:/project builder make clean
23
+ docker run --rm -v ${PWD}:/project builder make DEBUG=1
13
24
build-binary :
14
25
runs-on : ubuntu-22.04
15
26
needs : clang-format
16
27
steps :
17
- - uses : actions/checkout@v2
28
+ - uses : actions/checkout@v3
29
+ - name : create version.h
30
+ run : |
31
+ git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}")
32
+ cat <<EOF > ./src/version.h
33
+ #pragma once
34
+ #define VERSION_EXTRA " (nightly-$git_hash)"
35
+ EOF
18
36
- name : build binary
19
37
run : |
20
38
docker build . -t builder
You can’t perform that action at this time.
0 commit comments