Merge branch 'master' into release #101
This file contains 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 Basilisk Windows | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- release | |
jobs: | |
build-basilisk-windows: | |
name: Build Basilisk ${{ matrix.config.name }} | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- name: Windows-Win64 | |
win: win64 | |
arch: x86_64 | |
- name: Windows-Win32 | |
win: win32 | |
arch: i686 | |
steps: | |
- name: List available VC Redist folders (for debugging) | |
run: tree /f "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\redist" | |
- name: Install MozillaBuild | |
run: | | |
Invoke-WebRequest -Uri https://ftp.mozilla.org/pub/mozilla/libraries/win32/MozillaBuildSetup-3.4.exe -OutFile MozillaBuildSetup-3.4.exe | |
.\MozillaBuildSetup-3.4.exe /S /v/qn | Write-Output | |
del .\MozillaBuildSetup-3.4.exe | |
shell: pwsh | |
- uses: ChristopheLav/windows-sdk-install@v1 | |
with: | |
version-sdk: 22621 | |
features: 'OptionId.DesktopCPPx64,OptionId.DesktopCPPx86' | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Copy mozconfig | |
run: Copy-Item .github\workflows\build-basilisk-windows\mozconfig-${{ matrix.config.win }} -Destination .\.mozconfig | |
shell: pwsh | |
- name: Update mozconfig for release branch | |
if: github.ref == 'refs/heads/release' | |
shell: pwsh | |
run: | | |
(Get-Content .\.mozconfig) -replace 'disable-updater', 'enable-updater' | Set-Content .\.mozconfig | |
(Get-Content .\.mozconfig) -replace 'disable-official-branding', 'enable-official-branding' | Set-Content .\.mozconfig | |
- name: Pull official branding files for release branch | |
if: github.ref == 'refs/heads/release' | |
run: | | |
cd basilisk/branding | |
git clone https://${{ secrets.RPMO_CLONE_CREDENTIALS }}@repo.palemoon.org/Basilisk-Dev/${{ secrets.OFFICIAL_BRANDING_REPO_NAME }}.git official | |
shell: pwsh | |
- name: mach configure | |
run: | | |
C:\mozilla-build\start-shell.bat /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }}/.github/workflows/build-basilisk-windows/mach-passthrough-windows.sh /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }} configure | |
shell: pwsh | |
- name: mach build | |
run: | | |
C:\mozilla-build\start-shell.bat /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }}/.github/workflows/build-basilisk-windows/mach-passthrough-windows.sh /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }} build | |
shell: pwsh | |
- name: mach package | |
run: | | |
C:\mozilla-build\start-shell.bat /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }}/.github/workflows/build-basilisk-windows/mach-passthrough-windows.sh /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }} package | |
shell: pwsh | |
- name: mach installer if release branch | |
if: github.ref == 'refs/heads/release' | |
shell: pwsh | |
run: | | |
C:\mozilla-build\start-shell.bat /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }}/.github/workflows/build-basilisk-windows/mach-passthrough-windows.sh /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }} installer | |
- name: mach mar if release branch | |
if: github.ref == 'refs/heads/release' | |
shell: pwsh | |
run: | | |
C:\mozilla-build\start-shell.bat /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }}/.github/workflows/build-basilisk-windows/mach-passthrough-windows.sh /d/a/${{ github.event.repository.name }}/${{ github.event.repository.name }} mar | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: basilisk-windows-${{ matrix.config.win }} | |
path: obj-${{ matrix.config.arch }}-pc-mingw32/dist/basilisk-* |