Skip to content

Commit ac481e1

Browse files
committed
First commit after migrating from gitlab to github
I decided to try github out instead of my old gitlab repo (https://gitlab.com/maltfield/cross-platform-python-gui/) because it has native support for building on MacOS using free GitHub-hosted runners * https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on This is the first time I've setup a CI workflow on GitHub, so it may take a few commits for this migration to actually produce successful builds..
1 parent 3b46ee0 commit ac481e1

File tree

3 files changed

+47
-31
lines changed

3 files changed

+47
-31
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build
2+
3+
# execute this workflow automatically, but only when pushing to master
4+
on:
5+
push:
6+
branches: [ master ]
7+
# pull_request:
8+
# branches: [ master ]
9+
10+
jobs:
11+
12+
linux:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: docker://debian:buster-slim
17+
- uses: actions/checkout@v2
18+
19+
- name: Execute script to build linux AppImage
20+
run: "build/linux/buildAppImage.sh"
21+
shell: bash
22+
23+
- uses: actions/upload-artifact@v2
24+
with:
25+
name: Linux AppImage (x86_64)
26+
path: dist/
27+
28+
windows:
29+
runs-on: windows-latest
30+
31+
steps:
32+
- uses: docker://debian:buster-slim
33+
- uses: actions/checkout@v2
34+
35+
- name: Execute script to build linux AppImage
36+
run: "build/windows/buildExe.ps1"
37+
shell: powershell
38+
39+
- uses: actions/upload-artifact@v2
40+
with:
41+
name: Windows executable (x86_64)
42+
path: dist/
43+

.gitlab-ci.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![pipeline status](https://gitlab.com/maltfield/cross-platform-python-gui/badges/master/pipeline.svg)](https://gitlab.com/maltfield/cross-platform-python-gui/-/commits/master)
1+
![](https://github.com/maltfield/cross-platform-python-gui/workflows/build/badge.svg)
22

33
# Cross Platform Python GUI
44

@@ -11,13 +11,13 @@ It includes the CI pipeline to automatically build self-contained executables fo
1111
1. Fork this repo
1212
2. Edit [src/main.py](/src/main.py) as needed
1313
3. Add any required python modules to [requirements.txt](/requirements.txt)
14-
4. Go to Settings -> CI/CD and make sure that you have defined a "General pipeline." The default settings should be fine.
1514

16-
When you push git commits to gitlab on master, gitlab will automatically spin up containers in GCP and build your application's executables for all target platforms.
15+
When you push git commits to github on master, github will automatically spin up containers in the cloud and build your application's executables for all target platforms.
1716

1817
# TODO
1918

20-
1. Figure out how to build a Mac release on gitlab shared runners in GCP (vagrant with libvirt?)
19+
1. Finish migration from gitlab to github (get workflows working for linux & mac builds)
20+
2. Add CI workflow for building MacOS binaries
2121

2222
# License
2323

0 commit comments

Comments
 (0)