-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add initial github-actions yml pipeline
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: miqt.yml | ||
|
||
on: | ||
push: | ||
branches: [ "**" ] | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
jobs: | ||
build: | ||
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 linux64-go1.19-qt5.15-dynamic.Dockerfile . | ||
|
||
- name: Rebuild binding source | ||
run: docker run -it -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 -it -v $PWD:/src -w /src miqt/linux64:latest /bin/bash -c 'cd qt && go build' | ||
|
||
- name: Win64 docker build | ||
run: cd docker && docker build -t miqt/win64:latest -f win64-cross-go1.23-qt5.15-static.Dockerfile . | ||
|
||
- name: Win64 bindings compile | ||
run: docker run -it -v $PWD:/src -w /src miqt/win64:latest /bin/bash -c 'cd qt && go build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
apt-get install -qyy gnupg2 golang-go qtbase5-dev ca-certificates clang |