forked from machinekit/QtQuickVcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add GitHub CI/CD for Linux, macOS, Windows (machinekit#299)
Also some small build fixes. Related to machinekit#298.
- Loading branch information
Showing
7 changed files
with
141 additions
and
67 deletions.
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,62 @@ | ||
name: build Linux/macOS | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '*' | ||
|
||
jobs: | ||
buildTest_x64: | ||
name: Test_x64 | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install extra packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install bsdtar | ||
- run: ./build/travis/job1_Test/build.sh --x86_64 | ||
|
||
buildAppImage_x64: | ||
name: AppImage_x64 | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install extra packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install bsdtar | ||
- run: ./build/travis/job2_AppImage/build.sh --x86_64 | ||
- name: Release | ||
run: ./build/github/release.sh "$APP" "$LIB" "Linux 64bit" | ||
env: | ||
APP: '*x64.AppImage' | ||
LIB: '*x64.tar.gz' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
buildMacOS: | ||
name: macOS | ||
runs-on: macos-10.15 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- run: echo "QT_SHORT_VERSION=5.8" >> $GITHUB_ENV | ||
- run: echo "QT_LONG_VERSION=5.8.0" >> $GITHUB_ENV | ||
- run: echo "QT_INSTALLER_ROOT=qt-opensource-mac-x64-clang-${QT_LONG_VERSION}" >> $GITHUB_ENV | ||
- run: echo "QT_INSTALLER_FILENAME=${QT_INSTALLER_ROOT}.dmg" >> $GITHUB_ENV | ||
- run: echo "QT_PATH=$HOME/qt" >> $GITHUB_ENV | ||
- run: echo "QT_MACOS=$QT_PATH/$QT_SHORT_VERSION/clang_64" >> $GITHUB_ENV | ||
- run: echo "$QT_MACOS/bin" >> $GITHUB_PATH | ||
- run: echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH | ||
- run: ./build/travis/job_macos/install.sh | ||
- run: ./build/travis/job_macos/build.sh | ||
- name: Release | ||
run: ./build/github/release.sh "$APP" "$LIB" "macOS 64bit" | ||
env: | ||
APP: '*x64.dmg' | ||
LIB: '*x64.tar.gz' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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,18 @@ | ||
#! /usr/bin/env sh | ||
|
||
APP="MachinekitClient_Development" | ||
LIB="QtQuickVcp_Development" | ||
APPNAME=$(find . -name "${APP}$1") | ||
TAGNAME=$(git rev-parse --short "$GITHUB_SHA") | ||
LIBNAME=$(find . -name "${LIB}$2") | ||
OS_ARCH=$3 | ||
DESCRIPTION="${APP} and ${LIB} modules for: | ||
- x64 (64-bit Intel/AMD) Linux systems (Portable AppImages) | ||
- Windows 32bit and 64bit (x86 zip and x64 zip) | ||
- x64 (64-bit Intel/AMD) MacOSX systems | ||
Automated builds of the master development branch. FOR TESTING PURPOSES ONLY! | ||
Extract the contents of the archive to your Qt installation folder to use ${LIB}." | ||
|
||
gh release create "$TAGNAME" --notes "$DESCRIPTION" --title "$TAGNAME" | ||
gh release upload "$TAGNAME" "${APPNAME}#${APP} ${OS_ARCH}" | ||
gh release upload "$TAGNAME" "${LIBNAME}#${LIB} ${OS_ARCH}" |
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
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
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