-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
130 changed files
with
6,634 additions
and
3,260 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
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 |
---|---|---|
|
@@ -78,6 +78,65 @@ jobs: | |
name: ${{ matrix.dockerImage }} | ||
path: deploy/Hyper*.deb | ||
|
||
###################### | ||
####### macOS ######## | ||
###################### | ||
|
||
macOS: | ||
name: macOS | ||
runs-on: macos-latest | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
|
||
# Generate cache id | ||
- name: Prepare ccache timestamp | ||
if: env.USE_CACHE == '1' | ||
id: ccache_cache_timestamp | ||
shell: cmake -P {0} | ||
run: | | ||
string(TIMESTAMP current_date "%Y-%m-%d-%H-%M-%S" UTC) | ||
message("::set-output name=timestamp::${current_date}") | ||
|
||
# Download cache | ||
- name: ccache cache files | ||
if: env.USE_CACHE == '1' | ||
uses: actions/[email protected] | ||
with: | ||
path: .ccache | ||
key: macOS-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | ||
restore-keys: macOS-ccache- | ||
|
||
# Install deps | ||
- name: Install deps | ||
shell: bash | ||
run: brew update && brew upgrade && brew install qt@5 xz ccache | ||
|
||
# Build process | ||
- name: Build packages | ||
env: | ||
PLATFORM: osx | ||
USE_CCACHE: ${{ env.USE_CACHE }} | ||
shell: bash | ||
run: ./.ci/ci_build.sh | ||
|
||
# Upload artifacts (only on tagged commit) | ||
- name: Upload artifacts | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: build/Hyper*.dmg | ||
|
||
# Upload artifacts from commit | ||
- name: Upload artifacts from commit | ||
if: (startsWith(github.event.ref, 'refs/tags') != true) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macOS_x64 | ||
path: build/Hyper*.dmg | ||
|
||
###################### | ||
###### Windows ####### | ||
###################### | ||
|
@@ -87,7 +146,7 @@ jobs: | |
runs-on: windows-latest | ||
env: | ||
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC' | ||
QT_VERSION: 5.15.0 | ||
QT_VERSION: 5.15.2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
@@ -142,7 +201,7 @@ jobs: | |
publish: | ||
name: Publish Releases | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
needs: [Linux, windows] | ||
needs: [Linux, windows, macOS] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
|
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 |
---|---|---|
|
@@ -78,6 +78,65 @@ jobs: | |
name: ${{ matrix.dockerImage }} | ||
path: deploy/Hyper*.deb | ||
|
||
###################### | ||
####### macOS ######## | ||
###################### | ||
|
||
macOS: | ||
name: macOS | ||
runs-on: macos-latest | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
|
||
# Generate cache id | ||
- name: Prepare ccache timestamp | ||
if: env.USE_CACHE == '1' | ||
id: ccache_cache_timestamp | ||
shell: cmake -P {0} | ||
run: | | ||
string(TIMESTAMP current_date "%Y-%m-%d-%H-%M-%S" UTC) | ||
message("::set-output name=timestamp::${current_date}") | ||
# Download cache | ||
- name: ccache cache files | ||
if: env.USE_CACHE == '1' | ||
uses: actions/[email protected] | ||
with: | ||
path: .ccache | ||
key: macOS-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | ||
restore-keys: macOS-ccache- | ||
|
||
# Install deps | ||
- name: Install deps | ||
shell: bash | ||
run: brew update && brew upgrade && brew install qt@5 xz ccache | ||
|
||
# Build process | ||
- name: Build packages | ||
env: | ||
PLATFORM: osx | ||
USE_CCACHE: ${{ env.USE_CACHE }} | ||
shell: bash | ||
run: ./.ci/ci_build.sh | ||
|
||
# Upload artifacts (only on tagged commit) | ||
- name: Upload artifacts | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: build/Hyper*.dmg | ||
|
||
# Upload artifacts from commit | ||
- name: Upload artifacts from commit | ||
if: (startsWith(github.event.ref, 'refs/tags') != true) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macOS_x64 | ||
path: build/Hyper*.dmg | ||
|
||
###################### | ||
###### Windows ####### | ||
###################### | ||
|
@@ -87,7 +146,7 @@ jobs: | |
runs-on: windows-latest | ||
env: | ||
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC' | ||
QT_VERSION: 5.15.0 | ||
QT_VERSION: 5.15.2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
@@ -142,7 +201,7 @@ jobs: | |
publish: | ||
name: Publish Releases | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
needs: [Linux, windows] | ||
needs: [Linux, windows, macOS] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
|
Oops, something went wrong.