diff --git a/.github/workflows/miqt.yml b/.github/workflows/miqt.yml index 9df545a..62c4a31 100644 --- a/.github/workflows/miqt.yml +++ b/.github/workflows/miqt.yml @@ -7,6 +7,28 @@ on: branches: [ "**" ] jobs: + miqt_genbindings: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Linux64 docker build + run: cd docker && docker build -t miqt/linux64:latest -f genbindings.Dockerfile . + + - name: Cache clang ASTs + uses: actions/cache@v4 + with: + path: cmd/genbindings/cachedir + key: linux64-clang-cache + + - name: Rebuild binding source + run: docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/linux64:latest /bin/bash -c 'cd cmd/genbindings && go build && ./genbindings' + + - name: Assert no changes + run: git update-index --really-refresh && git diff-index HEAD + miqt_linux64: runs-on: ubuntu-22.04 @@ -17,23 +39,11 @@ jobs: - name: Linux64 docker build run: cd docker && docker build -t miqt/linux64:latest -f linux64-go1.19-qt5.15-dynamic.Dockerfile . - - name: Cache clang ASTs - uses: actions/cache@v4 - with: - path: cmd/genbindings/cachedir - key: linux64-clang-cache - - name: Cache GOCACHE uses: actions/cache@v4 with: path: ~/.cache/go-build key: linux64-gocache - - - name: Rebuild binding source - run: docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/linux64:latest /bin/bash -c 'cd cmd/genbindings && go build && ./genbindings' - - - name: Assert no changes - run: git update-index --really-refresh && git diff-index HEAD - name: Linux64 bindings compile 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' diff --git a/docker/genbindings.Dockerfile b/docker/genbindings.Dockerfile new file mode 100644 index 0000000..749a36e --- /dev/null +++ b/docker/genbindings.Dockerfile @@ -0,0 +1,4 @@ +FROM debian:bookworm + +RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ + apt-get install -qyy golang-go qtbase5-dev clang diff --git a/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile b/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile index db10151..0d181b3 100644 --- a/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile +++ b/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile @@ -1,4 +1,4 @@ FROM debian:bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy gnupg2 golang-go qtbase5-dev ca-certificates clang + apt-get install -qyy golang-go qtbase5-dev