mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
ci: add macos x86_64 nightly build
This commit is contained in:
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@@ -106,3 +106,35 @@ jobs:
|
|||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
|
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
|
||||||
tag: nightly
|
tag: nightly
|
||||||
|
|
||||||
|
build-macos-x86_64:
|
||||||
|
env:
|
||||||
|
ARCH: x86_64
|
||||||
|
OS: macos
|
||||||
|
|
||||||
|
runs-on: macos-13
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
# fetch submodules recusively, to get zig-js-runtime submodules also.
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- uses: ./.github/actions/install
|
||||||
|
with:
|
||||||
|
os: ${{env.OS}}
|
||||||
|
arch: ${{env.ARCH}}
|
||||||
|
|
||||||
|
- name: zig build
|
||||||
|
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
|
||||||
|
|
||||||
|
- name: Rename binary
|
||||||
|
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
|
||||||
|
|
||||||
|
- name: Upload the build
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
allowUpdates: true
|
||||||
|
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
|
||||||
|
tag: nightly
|
||||||
|
|||||||
3
Makefile
3
Makefile
@@ -11,6 +11,9 @@ kernel = $(shell uname -ms)
|
|||||||
ifeq ($(kernel), Darwin arm64)
|
ifeq ($(kernel), Darwin arm64)
|
||||||
OS := macos
|
OS := macos
|
||||||
ARCH := aarch64
|
ARCH := aarch64
|
||||||
|
else ifeq ($(kernel), Darwin x86_64)
|
||||||
|
OS := macos
|
||||||
|
ARCH := x86_64
|
||||||
else ifeq ($(kernel), Linux aarch64)
|
else ifeq ($(kernel), Linux aarch64)
|
||||||
OS := linux
|
OS := linux
|
||||||
ARCH := aarch64
|
ARCH := aarch64
|
||||||
|
|||||||
Reference in New Issue
Block a user