mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 14:18:37 +00:00
Merge pull request #27 from mappu/github-actions
GitHub actions support
This commit is contained in:
commit
cf6dc40a1f
58
.github/workflows/miqt.yml
vendored
Normal file
58
.github/workflows/miqt.yml
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "**" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "**" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
miqt_linux64:
|
||||||
|
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: 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'
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
- 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 -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/win64:latest /bin/bash -c 'cd qt && go build'
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
![](https://img.shields.io/badge/License-MIT-green)
|
![](https://img.shields.io/badge/License-MIT-green)
|
||||||
[![Go Reference](https://pkg.go.dev/badge/github.com/mappu/miqt/qt.svg)](https://pkg.go.dev/github.com/mappu/miqt/qt)
|
[![Go Reference](https://pkg.go.dev/badge/github.com/mappu/miqt/qt.svg)](https://pkg.go.dev/github.com/mappu/miqt/qt)
|
||||||
|
[![GitHub Actions CI](https://github.com/mappu/miqt/actions/workflows/miqt.yml/badge.svg?branch=master)](https://github.com/mappu/miqt/actions)
|
||||||
|
|
||||||
# MIQT
|
# MIQT
|
||||||
|
|
||||||
|
4
docker/linux64-go1.19-qt5.15-dynamic.Dockerfile
Normal file
4
docker/linux64-go1.19-qt5.15-dynamic.Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM debian:bookworm
|
||||||
|
|
||||||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||||
|
apt-get install -qyy gnupg2 golang-go qtbase5-dev ca-certificates clang
|
Loading…
Reference in New Issue
Block a user