Skip to content

Commit 32216a6

Browse files
workflows
1 parent 6160fc0 commit 32216a6

5 files changed

Lines changed: 318 additions & 0 deletions

File tree

.github/workflows/Windows.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: OpenHD Image Writer Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- "2.5-evo"
7+
- "dev-release"
8+
- "release"
9+
paths-ignore:
10+
- '**.md'
11+
- '**.asciidoc'
12+
- '**.adoc'
13+
- '.gitignore'
14+
- 'LICENSE'
15+
16+
env:
17+
BUILD_TYPE: Release
18+
19+
jobs:
20+
build:
21+
runs-on: windows-latest
22+
23+
defaults:
24+
run:
25+
working-directory: src
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- name: Install Qt
31+
uses: jurplel/install-qt-action@v3
32+
with:
33+
aqtversion: '==3.1.*'
34+
version: '5.15.2'
35+
host: 'windows'
36+
target: 'desktop'
37+
arch: 'win32_mingw81'
38+
39+
- name: Install dependencies
40+
run: |
41+
choco install -y nsis openssl.light
42+
mkdir C:\files
43+
xcopy "C:\Program Files\OpenSSL" C:\files /E /I /Q
44+
dir "C:\files"
45+
46+
- name: Configure CMake
47+
run: |
48+
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G "Unix Makefiles" -DOPENSSL_ROOT_DIR="C:\files" -DCMAKE_TOOLCHAIN_FILE="C:\Qt\${{env.QT_VERSION}}\${{env.QT_VERSION}}\mingw32\isystem.cmake"
49+
50+
- name: Build
51+
run: |
52+
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
53+
cd ../build/
54+
dir
55+
makensis openhdimagewriter.nsi
56+
57+
- name: Upload to Github
58+
uses: 'actions/upload-artifact@v3'
59+
with:
60+
name: "OpenHD Image Writer"
61+
path: |
62+
*.exe
63+
if-no-files-found: error

.github/workflows/macos.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build MacOS
2+
3+
on:
4+
push:
5+
branches:
6+
- "2.5-evo"
7+
- "dev-release"
8+
- "release"
9+
paths-ignore:
10+
- '**.md'
11+
- '**.asciidoc'
12+
- '**.adoc'
13+
- '.gitignore'
14+
- 'LICENSE'
15+
16+
env:
17+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
18+
BUILD_TYPE: Release
19+
20+
jobs:
21+
build:
22+
runs-on: macos-latest
23+
24+
defaults:
25+
run:
26+
working-directory: src
27+
28+
steps:
29+
- uses: actions/checkout@v3
30+
31+
- name: Install Qt
32+
uses: jurplel/install-qt-action@v3
33+
34+
- name: Install create-dmg
35+
run: brew install create-dmg
36+
37+
38+
- name: Configure CMake
39+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
40+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
41+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
42+
43+
- name: Build
44+
# Build your program with the given configuration
45+
run: |
46+
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
47+
cd ../build/
48+
ls -a
49+
create-dmg OpenHDImageWriter.dmg OpenHDImageWriter.app
50+
51+
52+
- name: Upload to Github
53+
uses: 'actions/upload-artifact@v3'
54+
with:
55+
name: "OpenHD Image Writer"
56+
path: |
57+
/Users/runner/work/OpenHD-ImageWriter/OpenHD-ImageWriter/build/OpenHDImageWriter.dmg
58+
if-no-files-found: error

.github/workflows/ubuntu20.04.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: OpenHD Image Writer
4+
5+
# Controls when the workflow will run
6+
on:
7+
push:
8+
branches:
9+
- "2.5-evo"
10+
- "dev-release"
11+
- "release"
12+
paths-ignore:
13+
- '**.md'
14+
- '**.asciidoc'
15+
- '**.adoc'
16+
- '.gitignore'
17+
- 'LICENSE'
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# The type of runner that the job will run on
24+
runs-on: ubuntu-20.04
25+
26+
# Steps represent a sequence of tasks that will be executed as part of the job
27+
steps:
28+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29+
- uses: actions/checkout@v2
30+
31+
# Runs a set of commands using the runners shell
32+
- name: Build
33+
run: |
34+
sudo apt update
35+
sudo apt upgrade
36+
sudo apt install -y --no-install-recommends libgnutls28-dev build-essential devscripts debhelper cmake git libarchive-dev libcurl4-openssl-dev qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev libqt5svg5-dev qttools5-dev libssl-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtgraphicaleffects
37+
mkdir build
38+
mv `ls -A | grep -v "build"` build
39+
cd build
40+
debuild -uc -us
41+
cd ..
42+
- name: Upload to Github
43+
uses: 'actions/upload-artifact@v2'
44+
with:
45+
name: "OpenHD Image Writer"
46+
path: |
47+
*.deb
48+
if-no-files-found: error
49+
50+
# - name: Push
51+
# id: push
52+
# uses: cloudsmith-io/action@master
53+
# with:
54+
# api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
55+
# command: "push"
56+
# format: "deb"
57+
# owner: "openhd"
58+
# repo: "openhd-2-3-evo"
59+
# distro: "ubuntu"
60+
# release: "focal"
61+
# republish: "true" # needed ONLY if version is not changing
62+
# file: "*.deb"

.github/workflows/ubuntu22.04.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: OpenHD Image Writer
4+
5+
on:
6+
push:
7+
branches:
8+
- "2.5-evo"
9+
- "dev-release"
10+
- "release"
11+
- "2.0"
12+
paths-ignore:
13+
- '**.md'
14+
- '**.asciidoc'
15+
- '**.adoc'
16+
- '.gitignore'
17+
- 'LICENSE'
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# The type of runner that the job will run on
24+
runs-on: ubuntu-22.04
25+
26+
# Steps represent a sequence of tasks that will be executed as part of the job
27+
steps:
28+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29+
- uses: actions/checkout@v2
30+
31+
# Runs a set of commands using the runners shell
32+
- name: Build
33+
run: |
34+
sudo apt update
35+
sudo apt upgrade -y
36+
sudo apt install -y --no-install-recommends libgnutls28-dev build-essential devscripts debhelper cmake git libarchive-dev libcurl4-openssl-dev qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev libqt5svg5-dev qttools5-dev libssl-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtgraphicaleffects
37+
mkdir build
38+
mv `ls -A | grep -v "build"` build
39+
cd build
40+
debuild -uc -us
41+
cd ..
42+
43+
- name: Upload to Github
44+
uses: 'actions/upload-artifact@v2'
45+
with:
46+
name: "OpenHD Image Writer"
47+
path: |
48+
*.deb
49+
if-no-files-found: error
50+
51+
- name: Push
52+
id: push
53+
uses: cloudsmith-io/action@master
54+
with:
55+
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
56+
command: "push"
57+
format: "deb"
58+
owner: "openhd"
59+
repo: ${{ github.ref_name }}
60+
distro: "ubuntu"
61+
release: "jammy"
62+
republish: "true" # needed ONLY if version is not changing
63+
file: "*.deb"

.github/workflows/ubuntu23.04.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: OpenHD Image Writer lunar
4+
5+
# Controls when the workflow will run
6+
on:
7+
push:
8+
branches:
9+
- "2.5-evo"
10+
- "dev-release"
11+
- "release"
12+
paths-ignore:
13+
- '**.md'
14+
- '**.asciidoc'
15+
- '**.adoc'
16+
- '.gitignore'
17+
- 'LICENSE'
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# The type of runner that the job will run on
24+
runs-on: ubuntu-22.04
25+
container:
26+
image: docker://ubuntu:lunar
27+
28+
# Steps represent a sequence of tasks that will be executed as part of the job
29+
steps:
30+
- name: initialise
31+
run: |
32+
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
33+
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
34+
apt update
35+
apt install -y git sudo
36+
37+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
38+
- uses: actions/checkout@v3
39+
40+
# Runs a set of commands using the runners shell
41+
- name: Build
42+
run: |
43+
sudo apt update
44+
sudo apt upgrade -y
45+
sudo apt install -y --no-install-recommends libgnutls28-dev build-essential devscripts debhelper cmake git libarchive-dev libcurl4-openssl-dev qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev libqt5svg5-dev qttools5-dev libssl-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtgraphicaleffects
46+
mkdir build
47+
mv `ls -A | grep -v "build"` build
48+
cd build
49+
debuild -uc -us
50+
cd ..
51+
52+
- name: Upload to Github
53+
uses: 'actions/upload-artifact@v3'
54+
with:
55+
name: "OpenHD Image Writer"
56+
path: |
57+
*.deb
58+
if-no-files-found: error
59+
60+
- name: Push
61+
id: push
62+
uses: cloudsmith-io/action@master
63+
with:
64+
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
65+
command: "push"
66+
format: "deb"
67+
owner: "openhd"
68+
repo: ${{ github.ref_name }}
69+
distro: "ubuntu"
70+
release: "lunar"
71+
republish: "true" # needed ONLY if version is not changing
72+
file: "*.deb"

0 commit comments

Comments
 (0)