2024-09-09 07:47:32 +00:00
name : CI
2024-09-09 06:46:52 +00:00
on :
push :
branches : [ "**" ]
pull_request :
branches : [ "**" ]
jobs :
2024-09-14 04:24:00 +00:00
miqt_genbindings :
2024-09-09 06:46:52 +00:00
runs-on : ubuntu-22.04
steps :
- name : Checkout
uses : actions/checkout@v4
- name : Linux64 docker build
2024-10-20 05:01:37 +00:00
run : docker build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile .
2024-09-09 06:46:52 +00:00
2024-09-09 07:47:32 +00:00
- name : Cache clang ASTs
uses : actions/cache@v4
with :
path : cmd/genbindings/cachedir
key : linux64-clang-cache
2024-09-09 06:46:52 +00:00
- name : Rebuild binding source
2024-09-14 06:27:49 +00:00
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'
2024-09-09 06:46:52 +00:00
- name : Assert no changes
run : git update-index --really-refresh && git diff-index HEAD
2024-09-14 04:24:00 +00:00
miqt_linux64 :
runs-on : ubuntu-22.04
steps :
- name : Checkout
uses : actions/checkout@v4
- name : Linux64 docker build
2024-10-20 05:01:37 +00:00
run : docker build -t miqt/linux64:latest -f docker/linux64-go1.19-qt5.15-dynamic.Dockerfile .
2024-09-14 04:24:00 +00:00
- name : Cache GOCACHE
uses : actions/cache@v4
with :
path : ~/.cache/go-build
key : linux64-gocache
2024-10-19 02:53:15 +00:00
- name : Linux64 bindings compile and test
run : docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/linux64:latest /bin/bash -c 'cd qt && go build && cd ../examples/marshalling && env QT_QPA_PLATFORM=offscreen go test -v'
2024-09-09 07:47:32 +00:00
miqt_win64 :
runs-on : ubuntu-22.04
steps :
- name : Checkout
uses : actions/checkout@v4
- name : Cache GOCACHE
uses : actions/cache@v4
with :
path : ~/.cache/go-build
key : win64-gocache
2024-09-09 06:46:52 +00:00
- name : Win64 docker build
2024-10-20 05:01:37 +00:00
run : docker build -t miqt/win64:latest -f docker/win64-cross-go1.23-qt5.15-static.Dockerfile .
2024-09-09 06:46:52 +00:00
- name : Win64 bindings compile
2024-09-09 07:47:32 +00:00
run : docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/win64:latest /bin/bash -c 'cd qt && go build'