From 43e08d067de9d1cc80a2e8c54c61f6eeeae958b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mauro=20=F0=9F=A4=99?= Date: Thu, 9 May 2024 17:59:03 +0000 Subject: [PATCH] testing windows builds --- .github/workflows/alpha.yml | 63 +++++++++++++++++++++++++++++++++++++ package-lock.json | 4 +-- 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 85c59ffa..1d398458 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -200,6 +200,66 @@ jobs: name: linux_update_manifest path: ./dist/update + windows: + runs-on: windows-latest + needs: [build-data] + + steps: + - name: Install Node.js and pnpm + uses: actions/setup-node@v3 + with: + node-version: 16 + + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 8 + run_install: false + + - name: Install dependencies + run: | + pnpm i + - name: Load gluon CI setup + run: pnpm gluon ci --brand alpha --display-version ${{ needs.build-data.outputs.version }} + + - name: Download + run: pnpm gluon download + + - name: Import + run: pnpm import + + - name: Build + shell: powershell.exe C:\mozilla-build\start-shell.bat "{0}" + run: | + cd /c/actions-runner/_work/browser/browser # mozillabuild defaults to ~ + pnpm build --skip-patch-check + - name: Package + shell: powershell.exe C:\mozilla-build\start-shell.bat "{0}" + run: | + cd /c/actions-runner/_work/browser/browser # mozillabuild defaults to ~ + pnpm package + mv ./dist/output.mar windows.mar + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: zen.installer.exe + path: ./dist/zen.installer.exe + + - name: Upload mar + uses: actions/upload-artifact@v3 + with: + name: windows.mar + path: ./windows.mar + + - name: Upload update manifests + uses: actions/upload-artifact@v3 + with: + name: windows_update_manifest + path: ./dist/update + source: permissions: contents: write @@ -393,8 +453,10 @@ jobs: title: 'Alpha build' files: | zen.linux.tar.bz2 + zen.installer.exe zen.source.tar.gz linux.mar + windows.mar - name: List run: find . @@ -410,6 +472,7 @@ jobs: run: | mkdir -p updates/updates cp -a linux_update_manifest/. updates/updates/ + cp -a windows_update_manifest/. updates/updates/ - uses: stefanzweifel/git-auto-commit-action@v4 with: diff --git a/package-lock.json b/package-lock.json index 4cbb57d1..17a97341 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "core", + "name": "zen-core", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "core", + "name": "zen-core", "version": "1.0.0", "license": "ISC", "dependencies": {