Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
ci: Versioned cross compile. No more debug builds
Browse files Browse the repository at this point in the history
Initial build change to support multiple Qt versions in remote-os with versioned cross compile action.
Relates to YIO-Remote/remote-os#3.

Removed debug build since it's nowhere used. Developers requiring debug builds usually build and deploy their own version.
  • Loading branch information
zehnm committed Sep 20, 2020
1 parent 52ac19c commit 0c9912f
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
name: "RPi0 Release Build", artifact: "RPi0-release",
qmake-args: "CONFIG+=release"
}
- {
name: "RPi0 Debug Build", artifact: "RPi0-debug",
qmake-args: "CONFIG+=debug CONFIG+=qml_debug"
}

steps:
- name: Checkout ${{ env.PROJECT_NAME}}
Expand All @@ -50,7 +46,7 @@

- name: Cross compile
id: cross-compile
uses: zehnm/yio-crosscompile-action@master
uses: zehnm/yio-crosscompile-action@v1.1.0
with:
project-name: ${{ env.PROJECT_NAME }}
output-path: ${GITHUB_WORKSPACE}/binaries/app
Expand All @@ -69,17 +65,12 @@
needs: build

steps:
- run: mkdir release debug
- run: mkdir release
- name: Download release artifact
uses: actions/download-artifact@v1
with:
name: ${{ env.APP_NAME }}-${{ env.APP_ARCHITECTURE }}-release
path: ./release
- name: Download debug artifact
uses: actions/download-artifact@v1
with:
name: ${{ env.APP_NAME }}-${{ env.APP_ARCHITECTURE }}-debug
path: ./debug

- name: Get artifact version
run: |
Expand All @@ -90,7 +81,6 @@
- name: Create GitHub development build archives
if: "!contains(github.ref, 'tags/v')"
run: |
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.TIMESTAMP }}-${{ env.APP_ARCHITECTURE }}-debug.tar -C debug .
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.TIMESTAMP }}-${{ env.APP_ARCHITECTURE }}-release.tar -C release .
for filename in *.tar; do echo "sha256 `sha256sum $filename`" >> ${{ env.HASH_FILENAME }}; done;
Expand All @@ -109,7 +99,6 @@
- name: Create GitHub release archives
if: "contains(github.ref, 'tags/v')"
run: |
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.APP_ARCHITECTURE }}-debug.tar -C debug .
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.APP_ARCHITECTURE }}-release.tar -C release .
for filename in *.tar; do echo "sha256 `sha256sum $filename`" >> ${{ env.HASH_FILENAME }}; done;
Expand All @@ -120,5 +109,5 @@
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
*.tar
${{ env.HASH_FILENAME }}
*.tar
${{ env.HASH_FILENAME }}

0 comments on commit 0c9912f

Please sign in to comment.