Skip to content

Commit 5cad450

Browse files
committed
ci: add linux amd64 nightly build
1 parent 8ec22ca commit 5cad450

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: nightly build
2+
3+
env:
4+
ARCH: x86_64-linux
5+
6+
on:
7+
schedule:
8+
- cron: "2 2 * * *"
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: write
15+
packages: read
16+
17+
jobs:
18+
build:
19+
name: nightly build
20+
21+
strategy:
22+
matrix:
23+
target:
24+
- x86_64-linux
25+
include:
26+
- target: x86_64-linux
27+
os: ubuntu-latest
28+
29+
runs-on: ${{ matrix.os }}
30+
container:
31+
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
32+
credentials:
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
token: ${{ secrets.GH_CI_PAT }}
41+
# fetch submodules recusively, to get zig-js-runtime submodules also.
42+
submodules: recursive
43+
44+
- uses: ./.github/actions/install
45+
46+
- name: zig build
47+
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8
48+
49+
- name: Rename binary
50+
run: mv zig-out/bin/browsercore-get lightpanda-get-${{ matrix.target }}
51+
52+
- name: Upload the build
53+
uses: ncipollo/release-action@v1
54+
with:
55+
allowUpdates: true
56+
artifacts: lightpanda-get-${{ matrix.target }}
57+
tag: nightly

0 commit comments

Comments
 (0)