-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from IENT/development
Development
- Loading branch information
Showing
9 changed files
with
148 additions
and
47 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: CI build | ||
|
||
on: [push, release] | ||
on: | ||
push: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build-unix: | ||
|
@@ -77,22 +81,38 @@ jobs: | |
cd build/YUViewApp | ||
# Zip | ||
zip -r ${{matrix.ARTIFACT_NAME}} YUView.app/ | ||
cp ${{matrix.ARTIFACT_NAME}} $GITHUB_WORKSPACE/artifacts | ||
mkdir $GITHUB_WORKSPACE/artifacts | ||
cp ${{matrix.ARTIFACT_NAME}} $GITHUB_WORKSPACE/artifacts/ | ||
if: matrix.os == 'macos-10.15' | ||
- name: Build Appimage (Linux) | ||
run: | | ||
cd build | ||
make INSTALL_ROOT=appdir install | ||
$GITHUB_WORKSPACE/linuxdeployqt-6-x86_64.AppImage YUViewApp/appdir/usr/local/share/applications/de.rwth_aachen.ient.YUView.desktop -appimage -bundle-non-qt-libs -verbose=2 | ||
mv YUView-*.AppImage YUView.AppImage | ||
cp YUView.AppImage $GITHUB_WORKSPACE/artifacts | ||
mkdir $GITHUB_WORKSPACE/artifacts | ||
cp YUView.AppImage $GITHUB_WORKSPACE/artifacts/ | ||
cd $GITHUB_WORKSPACE | ||
ls -l | ||
cd $GITHUB_WORKSPACE/artifacts | ||
ls -l | ||
if: matrix.os == 'ubuntu-16.04' | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{matrix.ARTIFACT_NAME}} | ||
path: artifacts | ||
if: matrix.os != 'ubuntu-18.04' | ||
- name: Upload Release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: artifacts/${{matrix.ARTIFACT_NAME}} | ||
asset_name: ${{matrix.ARTIFACT_NAME}} | ||
asset_content_type: application/zip | ||
if: github.event_name == 'release' && matrix.os != 'ubuntu-18.04' | ||
build-windows: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -107,7 +127,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- run: git fetch --prune --unshallow | ||
- uses: Dovyski/payload-info-action@master | ||
- name: Install Qt base | ||
run: | | ||
cd ../../ | ||
|
@@ -196,16 +215,28 @@ jobs: | |
name: YUViewSetup.msi | ||
path: ./YUViewSetup.msi | ||
if: matrix.auto_update == true | ||
- name: Upload Release | ||
- name: Upload Windows zip to Release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: artifacts/YUView-Win.zip | ||
asset_name: YUView-Win.zip | ||
asset_content_type: binary/octet-stream | ||
asset_name: ${{matrix.ARTIFACT_NAME}} | ||
asset_content_type: application/zip | ||
if: github.event_name == 'release' | ||
- name: Upload Windows installer to Release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: YUViewSetup.msi | ||
asset_name: YUViewSetup.msi | ||
asset_content_type: application/zip | ||
if: github.event_name == 'release' && matrix.auto_update == true | ||
|
||
# How to upload files to the release: | ||
# https://github.com/Blacksmoke16/oq/pull/47/files#diff-082c28d748ad2e3eecc5508d740d9417R9-R29 | ||
# https://github.com/Blacksmoke16/oq/pull/47/files#diff-082c28d748ad2e3eecc5508d740d9417R9-R29 | ||
# Mime type list | ||
# https://www.iana.org/assignments/media-types/media-types.xhtml |
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
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
Oops, something went wrong.