ci: remove container usage and download v8 from release

This commit is contained in:
Pierre Tachoire
2024-07-16 17:31:39 +02:00
parent 5fb25cf015
commit bfa6f55551
5 changed files with 69 additions and 67 deletions

View File

@@ -1,8 +1,5 @@
name: nightly build
env:
ARCH: x86_64-linux
on:
schedule:
- cron: "2 2 * * *"
@@ -12,26 +9,14 @@ on:
permissions:
contents: write
packages: read
jobs:
build:
name: nightly build
build-linux-x86_64:
env:
ARCH: x86_64
OS: linux
strategy:
matrix:
target:
- x86_64-linux
include:
- target: x86_64-linux
os: ubuntu-latest
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -47,11 +32,11 @@ jobs:
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8
- name: Rename binary
run: mv zig-out/bin/browsercore-get lightpanda-get-${{ matrix.target }}
run: mv zig-out/bin/browsercore-get lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
- name: Upload the build
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: lightpanda-get-${{ matrix.target }}
artifacts: lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
tag: nightly