Skip to content

EddyTheCo pull_request to main #78

EddyTheCo pull_request to main

EddyTheCo pull_request to main #78

name: push-build-release
run-name: ${{ github.actor }} ${{ github.event_name }} to ${{ github.base_ref }}
on:
push:
tags:
- 'v*'
pull_request:
branches: [main,develop]
jobs:
build_test_package:
strategy:
matrix:
os: [ubuntu-latest,macos-latest,windows-latest]
uses: EddyTheCo/Common/.github/workflows/[email protected]
with:
os: ${{ matrix.os }}
cmakeArgs: ' -DUSE_THREADS=ON -DQTDEPLOY=ON [email protected] -DREPO_URL=https://eddytheco.github.io/Esterv.Crypto.NFTWallet -DCPACK_PACKAGE_VENDOR=estervtech'
qtModules: 'qtwebsockets qtshadertools qtmultimedia'
qtVersion: '6.6.0'
test: false
build-android:
strategy:
matrix:
qtArch: ['android_arm64_v8a','android_armv7']
uses: EddyTheCo/Common/.github/workflows/[email protected]
with:
qtModules: 'qtwebsockets qtshadertools qtmultimedia'
qtTarget: 'nftwallet'
qtVersion: '6.6.0'
cmakeArgs: ' -DUSE_THREADS=ON '
qtArch: ${{ matrix.qtArch }}
secrets:
QT_ANDROID_KEYSTORE_STORE_PASS: ${{ secrets.QT_ANDROID_KEYSTORE_STORE_PASS }}
build-wasm:
uses: EddyTheCo/Common/.github/workflows/[email protected]
with:
qtModules: 'qtwebsockets qtshadertools'
qtVersion: '6.6.0'
emsdkVersion: '3.1.37'
deploy_dev: ${{ (startsWith(github.base_ref, 'main'))&&(startsWith(github.head_ref, 'develop')) }}
release-deploy:
if: ${{ ((startsWith(github.base_ref, 'main'))&&(startsWith(github.head_ref, 'develop')))||(startsWith(github.ref, 'refs/tags/v')) }}
needs: [build_test_package,build-android,build-wasm]
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Display structure of downloaded files
run: ls -R
- name: Move repositories to webpage
run: |
mkdir artifacts/WASM
cmake -E tar c artifacts/WASM/webapp.tar -- artifacts/wasm/
mv artifacts/wasm github-pages
mkdir github-pages/packages/ ${{runner.temp}}/platforms/
mv artifacts/*/_CPack_Packages/* ${{runner.temp}}/platforms/
for i in ${{runner.temp}}/platforms/*; do mv $i/IFW/*/repository/* $i/; rm -rf $i/IFW $i/TGZ; done;
mv ${{runner.temp}}/platforms/* github-pages/packages/
rm -rf artifacts/*/_CPack_Packages
- name: Package github-page
working-directory: ${{ github.workspace }}/github-pages/
run: |
cmake -E make_directory ${{runner.temp}}/page-packages
cmake -E tar c ${{runner.temp}}/page-packages/github-pages.tar -- .
- name: Releases
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: ./artifacts/*/*
- uses: actions/upload-artifact@v4
with:
name: 'github-pages'
path: ${{runner.temp}}/page-packages/*
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4