Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
QQxiaoming authored Dec 26, 2023
0 parents commit b870406
Show file tree
Hide file tree
Showing 12 changed files with 798 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
44 changes: 44 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: linux

on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
workflow_dispatch:

jobs:
ubuntu-2004:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.5.3'
modules: 'qt5compat'
aqtversion: ==3.1.7

- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y make gcc patchelf chrpath qt5-default libxcb-cursor0 build-essential libgtk-3-dev
- name: Build all
run: |
qmake -spec linux-g++
make -j8
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
path: |
./libhelloworld.so
44 changes: 44 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: macos

on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
workflow_dispatch:

jobs:
macos:
runs-on: macos-12

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.5.3'
modules: 'qt5compat'
aqtversion: ==3.1.7

- name: Install prerequisites
run: |
ruby - e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2 > /dev/null
brew install --build-from-source cmake
- name: Build all
run: |
qmake -makefile
make
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
path: |
./libhelloworld.dylib
40 changes: 40 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: windows

on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
workflow_dispatch:

jobs:
windows:
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
arch: win64_mingw
version: '6.5.3'
modules: 'qt5compat'
aqtversion: ==3.1.7

- name: Build all
run: |
qmake -spec win32-g++
mingw32-make -j8
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
path: |
./release/helloworld.dll
81 changes: 81 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------

*~
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
Makefile*
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash

# qtcreator generated files
*.pro.user*
CMakeLists.txt.user*

# xemacs temporary files
*.flc

# Vim temporary files
.*.swp

# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*

# MinGW generated files
*.Debug
*.Release

# Python byte code
*.pyc

# Binaries
# --------
*.dll
*.exe
!sed.exe
!awk.exe
!upx.exe

*build-*
build_*
.vscode
moc_predefs.h
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "plugininterface"]
path = plugininterface
url = https://github.com/QuardCRT-platform/plugininterface.git
Loading

0 comments on commit b870406

Please sign in to comment.