Android Updates v0.97.0 #1057
Workflow file for this run
This file contains hidden or 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
| name: build-linux | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**/README.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**/README.md' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| ccache: ccache | |
| GA_CI_SECRET: ${{ secrets.CI_SECRET }} | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| cfg: | |
| - {target: linux} | |
| env: | |
| TARGET: ${{ matrix.cfg.target }} | |
| steps: | |
| # - name: Install libunwind | |
| # run: sudo apt-get install libunwind-dev wget2 | |
| - uses: actions/checkout@v4 | |
| - name: ccache | |
| uses: hendrikmuhs/[email protected] | |
| with: | |
| key: ${{ matrix.cfg.target }} | |
| - name: Determine Release | |
| id: vars | |
| shell: bash | |
| run: | | |
| if [[ "${{ github.ref }}" == refs/tags/* ]]; then | |
| echo "RELEASE=${{ github.ref_name }}" >> $GITHUB_ENV | |
| echo "PRERELEASE=false" >> $GITHUB_ENV | |
| elif [[ "${{ github.ref }}" == "refs/heads/master" ]]; then | |
| echo "RELEASE=nightly" >> $GITHUB_ENV | |
| echo "PRERELEASE=false" >> $GITHUB_ENV | |
| elif [[ "${{ github.ref }}" == "refs/heads/bleeding" ]]; then | |
| echo "RELEASE=bleeding" >> $GITHUB_ENV | |
| echo "PRERELEASE=true" >> $GITHUB_ENV | |
| else | |
| echo "RELEASE=bleeding" >> $GITHUB_ENV | |
| echo "PRERELEASE=true" >> $GITHUB_ENV | |
| fi | |
| TAG_NAME=${GITHUB_REF#refs/tags/} | |
| echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV | |
| - name: Install | |
| run: ./scripts/linux/ci_install_core.sh | |
| - name: List directory | |
| run: ls -lah ./ | |
| - name: Build | |
| run: ./../openFrameworks/apps/projectGenerator/scripts/linux/build_cmdline.sh | |
| - name: Test cmdline | |
| run: ./../openFrameworks/apps/projectGenerator/scripts/linux/test_cmdline.sh | |
| - name: List output directory | |
| run: ls -lah ./../openFrameworks/apps/projectGenerator/commandLine/bin | |
| - name: Copy commandLine to frontend | |
| run: | | |
| cp ./../openFrameworks/apps/projectGenerator/commandLine/bin/projectGenerator ./../openFrameworks/apps/projectGenerator/frontend/app/projectGenerator | |
| chmod 755 ./../openFrameworks/apps/projectGenerator/commandLine/bin/projectGenerator | |
| - name: Build and Package projectGenerator Linux GUI | |
| shell: bash | |
| run: | | |
| cd ../openFrameworks/apps/projectGenerator/frontend | |
| npm install | |
| npm update | |
| npm run dist:linux64 | |
| cd dist | |
| pwd | |
| ls | |
| - name: Build and Package projectGenerator Linux GUI | |
| shell: bash | |
| run: | | |
| cd ../openFrameworks/apps/projectGenerator/frontend | |
| npm install | |
| npm update | |
| npm run dist:linux:arm64 | |
| cd dist | |
| pwd | |
| ls | |
| - name: Build and Package projectGenerator Linux GUI | |
| shell: bash | |
| run: | | |
| cd ../openFrameworks/apps/projectGenerator/frontend | |
| npm install | |
| npm update | |
| npm run dist:linux:armv7l | |
| cd dist | |
| pwd | |
| ls | |
| - name: List output frontend dist dir | |
| run: ls -lah ./../openFrameworks/apps/projectGenerator/frontend/dist | |
| - name: Copy GUI tarball to root directory | |
| run: | | |
| cd ./../openFrameworks/apps/projectGenerator/frontend/dist | |
| mv projectGenerator-0.95.0.tar.gz $GITHUB_WORKSPACE/projectGenerator-linux-gui.gz | |
| - name: Copy GUI tarball to root directory | |
| run: | | |
| cd ./../openFrameworks/apps/projectGenerator/frontend/dist | |
| mv projectGenerator-0.95.0-arm64.tar.gz $GITHUB_WORKSPACE/projectGenerator-linux-arm64-gui.gz | |
| - name: Copy GUI tarball to root directory | |
| run: | | |
| cd ./../openFrameworks/apps/projectGenerator/frontend/dist | |
| mv projectGenerator-0.95.0-armv7l.tar.gz $GITHUB_WORKSPACE/projectGenerator-linux-armv7l-gui.gz | |
| - name: Test Artefact zip | |
| run: | | |
| cd ./../openFrameworks/apps/projectGenerator/commandLine/bin/ | |
| ls -la | |
| tar -cjf projectGenerator-linux.tar.bz2 projectGenerator | |
| mv projectGenerator-linux.tar.bz2 $GITHUB_WORKSPACE/projectGenerator-linux.tar.bz2 | |
| - name: List output top | |
| run: ls -lah $GITHUB_WORKSPACE | |
| - name: Update Release Linux | |
| if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') | |
| uses: softprops/[email protected] | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| tag_name: ${{ env.RELEASE }} | |
| files: projectGenerator-linux.tar.bz2 | |
| - name: Update Release Linux gui | |
| if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') | |
| uses: softprops/[email protected] | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| tag_name: ${{ env.RELEASE }} | |
| files: projectGenerator-linux-gui.gz | |
| - name: Update Release Linux gui - arm64 | |
| if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') | |
| uses: softprops/[email protected] | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| tag_name: ${{ env.RELEASE }} | |
| files: projectGenerator-linux-arm64-gui.gz | |
| - name: Update Release Linux gui - armv7l | |
| if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') | |
| uses: softprops/[email protected] | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| tag_name: ${{ env.RELEASE }} | |
| files: projectGenerator-linux-armv7l-gui.gz | |
| - name: Get Release ID for the Tag | |
| id: get_release | |
| if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') | |
| run: | | |
| RELEASE_ID=$(curl -s \ | |
| -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/openframeworks/projectGenerator/releases | jq -r '.[] | select(.tag_name=="${{ env.TAG_NAME }}") | .id') | |
| if [ -z "$RELEASE_ID" ]; then | |
| echo "Release ID not found for tag: ${{ env.TAG_NAME }}" | |
| exit 1 | |
| fi | |
| echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV | |
| echo "Found Release ID: ${RELEASE_ID}" | |
| - name: Update Release Description | |
| if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') | |
| run: | | |
| curl -X PATCH \ | |
| -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/openframeworks/projectGenerator/releases/${{ env.RELEASE_ID }} \ | |
| -d '{ | |
| "body": "Updated release for tag: ${{ env.TAG_NAME }} - '"$(date '+%Y-%m-%d %H:%M:%S')"'" | |
| }' |