Skip to content

ci: target cpu x86_64_v3+aes for compatibility #14

ci: target cpu x86_64_v3+aes for compatibility

ci: target cpu x86_64_v3+aes for compatibility #14

Workflow file for this run

name: nightly build
on:
schedule:
- cron: "2 2 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:
# By default GH trigger on types opened, synchronize and reopened.
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
# Since we skip the job when the PR is in draft state, we want to force CI
# running when the PR is marked ready_for_review w/o other change.
# see https://github.com/orgs/community/discussions/25722#discussioncomment-3248917
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: write
jobs:
build-linux-x86_64:
env:
ARCH: x86_64
OS: linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_CI_PAT }}
# fetch submodules recusively, to get zig-js-runtime submodules also.
submodules: recursive
- uses: ./.github/actions/install
- name: zig build
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dtarget=x86_64_v3-linux-gnu -Dcpu=x86_64_v3+aes
- name: Rename binary
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-${{ env.ARCH }}-${{ env.OS }}
tag: nightly
# build-macos-aarch64:
# env:
# ARCH: aarch64
# OS: macos
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# token: ${{ secrets.GH_CI_PAT }}
# # 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
# - name: Rename binary
# 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-${{ env.ARCH }}-${{ env.OS }}
# tag: nightly