-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions for build win/deb packages
- Loading branch information
fft
committed
May 25, 2022
1 parent
67b47ea
commit c615f96
Showing
6 changed files
with
174 additions
and
0 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,39 @@ | ||
name: ubuntu_release | ||
|
||
on: | ||
push: | ||
branches: [ experimental ] | ||
pull_request: | ||
branches: [ experimental ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
with: | ||
version: 6.2.0 | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_QT6=ON | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --verbose | ||
|
||
- name: Package | ||
run: cpack -G DEB | ||
working-directory: ${{github.workspace}}/build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: mytetra_${{github.sha}}.deb | ||
path: ${{github.workspace}}/build/mytetra*.deb |
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,39 @@ | ||
name: ubuntu_release_qt5 | ||
|
||
on: | ||
push: | ||
branches: [ experimental ] | ||
pull_request: | ||
branches: [ experimental ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
with: | ||
version: 5.15.2 | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_QT6=OFF | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --verbose | ||
|
||
- name: Package | ||
run: cpack -G DEB | ||
working-directory: ${{github.workspace}}/build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: mytetra_qt5_${{github.sha}}.deb | ||
path: ${{github.workspace}}/build/mytetra*.deb |
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,42 @@ | ||
name: windows_release | ||
|
||
on: | ||
push: | ||
branches: [ experimental ] | ||
pull_request: | ||
branches: [ experimental ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
with: | ||
version: 6.2.0 | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_SYSTEM_MIMETEX=OFF -DUSE_QT6=ON | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --verbose | ||
|
||
- name: Install | ||
run: cmake --install ${{github.workspace}}/build | ||
|
||
- name: Package | ||
run: windeployqt --verbose 2 --no-compiler-runtime ${{github.workspace}}/build/mytetra_distr/mytetra.exe | ||
working-directory: ${{github.workspace}}/build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: mytetra_${{github.sha}} | ||
path: ${{github.workspace}}/build/mytetra_distr/ |
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,42 @@ | ||
name: windows_release_qt5 | ||
|
||
on: | ||
push: | ||
branches: [ experimental ] | ||
pull_request: | ||
branches: [ experimental ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
with: | ||
version: 5.15.2 | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_SYSTEM_MIMETEX=OFF -DUSE_QT6=OFF | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --verbose | ||
|
||
- name: Install | ||
run: cmake --install ${{github.workspace}}/build | ||
|
||
- name: Package | ||
run: windeployqt --verbose 2 --no-compiler-runtime ${{github.workspace}}/build/mytetra_distr/mytetra.exe | ||
working-directory: ${{github.workspace}}/build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: mytetra_qt5_${{github.sha}} | ||
path: ${{github.workspace}}/build/mytetra_distr/ |
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