Disable visualizer profiler by default hehe #1913
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: CI | |
| on: | |
| push: | |
| # Sequence of patterns matched against refs/heads | |
| branches: | |
| - master | |
| - dev | |
| - features/* # all feature branches | |
| # Sequence of patterns matched against refs/tags | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CI_TOKEN }} | |
| NODE_OPTIONS: --max-old-space-size=8192 | |
| jobs: | |
| build-linux: | |
| name: Build Linux packages | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup and build | |
| uses: ./.github/actions/setup-build | |
| - name: Build Linux binaries | |
| run: yarn run build:linux | |
| - name: Prepare release assets | |
| shell: bash | |
| run: | | |
| GIT_COMMIT_LOG=`git log -1 --format='%ci %H %s'` | |
| PACKAGE_NAME=`node -e "console.log(require('./src/package.json').name)"` | |
| PACKAGE_VERSION=`node -e "console.log(require('./src/package.json').version)"` | |
| mkdir -p releases/linux | |
| ls -al output | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-x86_64.AppImage" "releases/linux/${PACKAGE_NAME}-${PACKAGE_VERSION}-Linux-Intel-64Bit.AppImage" | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-amd64.deb" "releases/linux/${PACKAGE_NAME}-${PACKAGE_VERSION}-Linux-Intel-64Bit.deb" | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-arm64.AppImage" "releases/linux/${PACKAGE_NAME}-${PACKAGE_VERSION}-Linux-ARM-64Bit.AppImage" | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-arm64.deb" "releases/linux/${PACKAGE_NAME}-${PACKAGE_VERSION}-Linux-ARM-64Bit.deb" | |
| ls -al output releases/linux | |
| if [[ "$GITHUB_REF_TYPE" == "branch" && "$GITHUB_REF_NAME" == "master" ]]; then | |
| yarn github-release delete \ | |
| --owner=gSender \ | |
| --repo=gsender \ | |
| --tag="${GITHUB_REF_NAME}-latest" \ | |
| --release-name="${GITHUB_REF_NAME}" \ | |
| "*-linux*"; | |
| yarn github-release upload \ | |
| --owner=gSender \ | |
| --repo=gsender \ | |
| --tag="${GITHUB_REF_NAME}-latest" \ | |
| --release-name="${GITHUB_REF_NAME}" \ | |
| --body="${GIT_COMMIT_LOG}" \ | |
| releases/linux/*; | |
| fi | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: releases/linux/* | |
| prerelease: true | |
| draft: true | |
| build-macos: | |
| name: Build macOS packages | |
| environment: CI | |
| runs-on: macos-latest | |
| env: | |
| GH_TOKEN: ${{ secrets.CI_TOKEN }} | |
| APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | |
| APPLE_ID: ${{ secrets.APPLE_ID }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
| CSC_LINK: ${{ secrets.CSC_LINK }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Pip setuptools | |
| run: sudo -H pip install setuptools | |
| - name: Setup and build | |
| uses: ./.github/actions/setup-build | |
| - name: Build macOS binaries | |
| run: yarn run build:macos | |
| - name: Prepare release assets | |
| shell: bash | |
| run: | | |
| GIT_COMMIT_LOG=`git log -1 --format='%ci %H %s'` | |
| PACKAGE_NAME=`node -e "console.log(require('./src/package.json').name)"` | |
| PACKAGE_VERSION=`node -e "console.log(require('./src/package.json').version)"` | |
| mkdir -p releases/macos | |
| ls -al output | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-x64.dmg" "releases/macos/gSender-${PACKAGE_VERSION}-macos-x64.dmg" | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-arm64.dmg" "releases/macos/gSender-${PACKAGE_VERSION}-macos-arm64.dmg" | |
| ls -al output releases/macos | |
| if [[ "$GITHUB_REF_TYPE" == "branch" && "$GITHUB_REF_NAME" == "master" ]]; then | |
| yarn github-release delete \ | |
| --owner=gSender \ | |
| --repo=gsender \ | |
| --tag="${GITHUB_REF_NAME}-latest" \ | |
| --release-name="${GITHUB_REF_NAME}" \ | |
| "*-macos*"; | |
| yarn github-release upload \ | |
| --owner=gSender \ | |
| --repo=gsender \ | |
| --tag="${GITHUB_REF_NAME}-latest" \ | |
| --release-name="${GITHUB_REF_NAME}" \ | |
| --body="${GIT_COMMIT_LOG}" \ | |
| releases/macos/*; | |
| fi | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: releases/macos/* | |
| prerelease: true | |
| draft: true | |
| - name: Upload Mac Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mac_artifact | |
| path: releases/macos/*.dmg | |
| compression-level: 0 # no compression | |
| retention-days: 2 | |
| build-windows: | |
| name: Build Windows packages | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Prepare VC++ Runtime | |
| run: choco install -y vcredist2017 | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup and build | |
| uses: ./.github/actions/setup-build | |
| - name: Build Windows binaries | |
| run: yarn run build:windows | |
| - name: Prepare release assets | |
| shell: bash | |
| run: | | |
| GIT_COMMIT_LOG=`git log -1 --format='%ci %H %s'` | |
| PACKAGE_NAME=`node -e "console.log(require('./src/package.json').name)"` | |
| PACKAGE_VERSION=`node -e "console.log(require('./src/package.json').version)"` | |
| mkdir -p releases/windows | |
| ls -al output | |
| cp -af "output/${PACKAGE_NAME}-${PACKAGE_VERSION}-x64.exe" "releases/windows/gSender-${PACKAGE_VERSION}-Windows-64Bit.exe" | |
| ls -al output releases/windows | |
| if [[ "$GITHUB_REF_TYPE" == "branch" && "$GITHUB_REF_NAME" == "master" ]]; then | |
| yarn github-release delete \ | |
| --owner=gSender \ | |
| --repo=gsender \ | |
| --tag="${GITHUB_REF_NAME}-latest" \ | |
| --release-name="${GITHUB_REF_NAME}" \ | |
| "*-windows*"; | |
| yarn github-release upload \ | |
| --owner=gSender \ | |
| --repo=gsender \ | |
| --tag="${GITHUB_REF_NAME}-latest" \ | |
| --release-name="${GITHUB_REF_NAME}" \ | |
| --body="${GIT_COMMIT_LOG}" \ | |
| releases/windows/*; | |
| fi | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: releases/windows/* | |
| prerelease: true | |
| draft: true | |
| - name: Upload Windows Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows_artifact | |
| path: releases/windows/*.exe | |
| compression-level: 0 # no compression | |
| retention-days: 2 | |
| build-pi: | |
| name: Build Raspberry PI packages | |
| runs-on: ubuntu-24.04-arm | |
| env: | |
| GH_TOKEN: ${{ secrets.CI_TOKEN }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Build Pi binaries using docker | |
| shell: bash | |
| run: | | |
| scripts/build-pi.sh | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| releases/pi/* | |
| prerelease: true | |
| draft: true |