mirror of
				https://github.com/lightpanda-io/browser.git
				synced 2025-10-30 07:31:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			141 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			141 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: nightly build
 | |
| 
 | |
| on:
 | |
|   schedule:
 | |
|     - cron: "2 2 * * *"
 | |
| 
 | |
|   # Allows you to run this workflow manually from the Actions tab
 | |
|   workflow_dispatch:
 | |
| 
 | |
| permissions:
 | |
|   contents: write
 | |
| 
 | |
| jobs:
 | |
|   build-linux-x86_64:
 | |
|     env:
 | |
|       ARCH: x86_64
 | |
|       OS: linux
 | |
| 
 | |
|     runs-on: ubuntu-22.04
 | |
| 
 | |
|     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 -Dcpu=x86_64 -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
 | |
| 
 | |
|   build-linux-aarch64:
 | |
|     env:
 | |
|       ARCH: aarch64
 | |
|       OS: linux
 | |
| 
 | |
|     runs-on: ubuntu-24.04-arm
 | |
| 
 | |
|     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
 | |
| 
 | |
|   build-macos-aarch64:
 | |
|     env:
 | |
|       ARCH: aarch64
 | |
|       OS: macos
 | |
| 
 | |
|     runs-on: macos-latest
 | |
| 
 | |
|     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
 | |
| 
 | |
|   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
 | 
