File tree 3 files changed +21
-5
lines changed
3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,15 @@ jobs:
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
-
17
- - name : Linux64 docker build
18
- run : docker build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile .
19
-
16
+
20
17
- name : Cache clang ASTs
21
18
uses : actions/cache@v4
22
19
with :
23
20
path : cmd/genbindings/cachedir
24
21
key : linux64-clang-cache
25
22
26
23
- name : Rebuild binding source
27
- run : docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/genbindings:latest /bin/bash -c 'cd cmd/genbindings && go build && ./genbindings'
24
+ run : make
28
25
29
26
- name : Assert no changes
30
27
run : git update-index --really-refresh && git diff-index HEAD
Original file line number Diff line number Diff line change @@ -46,3 +46,6 @@ examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
46
46
# android temporary build files
47
47
android-build
48
48
deployment-settings.json
49
+
50
+ * .docker-buildstamp
51
+ compile_flags.txt
Original file line number Diff line number Diff line change
1
+ BUILDSTAMPS = docker/genbindings.docker-buildstamp
2
+
3
+ all : genbindings
4
+
5
+ docker/genbindings.docker-buildstamp : docker/genbindings.Dockerfile
6
+ docker build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile .
7
+ touch $@
8
+
9
+ clean :
10
+ docker image rm -f miqt/genbindings:latest
11
+ rm -f $(BUILDSTAMPS )
12
+
13
+ genbindings : $(BUILDSTAMPS )
14
+ docker run --user $$(id -u ) :$$(id -g ) -v ~ /.cache/go-build:/.cache/go-build -v $$ PWD:/src -w /src miqt/genbindings:latest /bin/bash -c ' cd cmd/genbindings && go build && ./genbindings'
15
+
16
+ .PHONY : all clean genbindings
You can’t perform that action at this time.
0 commit comments