Skip to content

Commit ef60eca

Browse files
committed
Initial release
0 parents  commit ef60eca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5256
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: koppi
2+
custom: 'https://koppi.github.io'

.github/workflows/label.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler
7+
8+
name: Labeler
9+
on: [pull_request]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/labeler@v2
21+
with:
22+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/main.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
on:
2+
push:
3+
branches: [ main ]
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
name: ${{ matrix.target }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
target:
14+
- ubuntu-latest
15+
runs-on: ${{ matrix.target }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Install devscripts
20+
run: |
21+
sudo apt update -qq
22+
sudo apt full-upgrade -y
23+
sudo DEBIAN_FRONTEND=noninteractive apt -qq -y install devscripts equivs lintian
24+
mk-build-deps -i -s sudo -t "apt --yes --no-install-recommends"
25+
26+
- name: Build source package
27+
env:
28+
DEBFULLNAME: "Github Actions"
29+
DEBEMAIL: "jakob.flierl@gmail.com"
30+
run: |
31+
export TARGET=$(. /etc/lsb-release && echo $DISTRIB_CODENAME)
32+
git fetch --unshallow
33+
git fetch --tags
34+
VERSION="$(git describe --tags --always | sed -e "s/^v//" -e "s/-/+git/")"
35+
dch --create \
36+
--distribution ${TARGET} \
37+
--package qgcoder \
38+
--newversion ${VERSION}~${TARGET}1 \
39+
"Automatic build from Github"
40+
debuild -S -sa -us -uc -d
41+
42+
- name: Build and install libqgcodeeditor
43+
env:
44+
DEBFULLNAME: "Jakob Flierl"
45+
DEBEMAIL: "jakob.flierl@gmail.com"
46+
run: |
47+
git clone https://github.com/QGCoder/libqgcodeeditor
48+
pushd libqgcodeeditor
49+
export TARGET=$(. /etc/lsb-release && echo $DISTRIB_CODENAME)
50+
VERSION="$(git describe --tags --always | sed -e "s/^v//" -e "s/-/+git/")"
51+
dch --create \
52+
--distribution ${TARGET} \
53+
--package libqgcodeeditor \
54+
--newversion ${VERSION}~${TARGET}1 \
55+
"Automatic build from Github"
56+
debuild -S -sa -us -uc -d
57+
mk-build-deps -i -s sudo -t "apt --yes --no-install-recommends"
58+
dpkg-buildpackage -b -rfakeroot -us -uc
59+
sudo dpkg -i ../libqgcodeeditor*deb
60+
sudo apt -y -f install
61+
popd
62+
63+
- name: Build binary package
64+
run: dpkg-buildpackage -b -rfakeroot -us -uc
65+
66+
- name: Install binary package
67+
run: sudo dpkg -i ../qgcoder*deb
68+
69+
- name: Install binary package dependencies
70+
run: sudo apt -f install
71+
72+
- name: Run lintian
73+
run: lintian ../qgcoder*deb | lintian-info
74+
75+
- name: Upload artifacts
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: ${{ matrix.target }}
79+
if-no-files-found: error
80+
path: |
81+
*.buildinfo
82+
*.changes
83+
*.dsc
84+
*.tar.*
85+
*.deb
86+
~/**/*/*.buildinfo
87+
~/**/*/*.changes
88+
~/**/*/*.dsc
89+
~/**/*/*.tar.*
90+
~/**/*/*.deb
91+
92+

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
**.exe
2+
3+
debug
4+
release
5+
6+
Makefile.Debug
7+
Makefile.Release
8+
lib
9+
10+
gcoder.pro.user*
11+
12+
Makefile
13+
14+
.moc
15+
.ui
16+
.obj
17+
.rcc
18+
19+
**.swp
20+
21+
*.o
22+
23+
.qglviewer.xml
24+
25+
bin
26+
gen
27+
target
28+
29+
qgcoder
30+
31+
build-stamp
32+
debian/qgcoder.debhelper.log
33+
debian/qgcoder.substvars
34+
debian/qgcoder/
35+
debian/files
36+
37+
.qmake.stash
38+
gcoder-build-deps_0.0.0-ubuntu1_all.deb
39+
gcoder-build-deps_0.0.0-ubuntu1_amd64.buildinfo
40+
gcoder-build-deps_0.0.0-ubuntu1_amd64.changes
41+
x
42+
43+
qgcoder.pro.user
44+
45+
*.deb
46+
*.buildinfo
47+
*.changes

0 commit comments

Comments
 (0)