mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 09:42:05 -08:00
CI/CD: Add target arch matrix
This commit is contained in:
parent
1d31bad14e
commit
73386d6b9f
2 changed files with 13 additions and 8 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -12,6 +12,14 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
target: [linux, windows, macos]
|
||||
arch: [x86_64, arm64, i686]
|
||||
exclude:
|
||||
# Fails (.mozbuild does not include clang++-cl)
|
||||
- target: windows
|
||||
arch: arm64
|
||||
# Unsuported
|
||||
- target: macos
|
||||
arch: i686
|
||||
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
|
|
@ -96,18 +104,12 @@ jobs:
|
|||
free -h
|
||||
|
||||
- name: Build
|
||||
run: python3 ./multibuild.py --target ${{ matrix.target }} --arch x86_64
|
||||
|
||||
- name: Save .mozbuild cache
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
path: ~/.mozbuild
|
||||
key: mozbuild-${{ matrix.target }}
|
||||
run: python3 ./multibuild.py --target ${{ matrix.target }} --arch ${{ matrix.arch }}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: CamoufoxBuilds-${{ matrix.target }}
|
||||
name: CamoufoxBuilds-${{ matrix.target }}-${{ matrix.arch }}
|
||||
path: dist/*
|
||||
|
||||
release:
|
||||
|
|
|
|||
|
|
@ -121,6 +121,9 @@ def main():
|
|||
# Run build
|
||||
for target in args.target:
|
||||
for arch in args.arch:
|
||||
if (target, arch) in [("windows", "arm64"), ("macos", "i686")]:
|
||||
print(f"Skipping {target} {arch}: Unsuported architecture.")
|
||||
continue
|
||||
run_build(target, arch)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue