Skip to content

Update build.yml

Update build.yml #38

Workflow file for this run

name: CEF Build CI
on:
push:
branches:
- m124-ci
jobs:
build:
runs-on: self-hosted
steps:
- name: Support longpaths
run: git config --global core.longpaths true
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Release
uses: softprops/action-gh-release@v2
with:
name: ${{ format('build-{0}', github.run_id) }}
tag_name: ${{ format('build-{0}', github.run_id) }}
files: build/*.bat
- name: Add depot_tools and ninja to PATH
run: |
echo "$env:GITHUB_WORKSPACE\depot_tools" >> $GITHUB_PATH
echo "$env:GITHUB_WORKSPACE\ninja" >> $GITHUB_PATH
- name: Prepare Depot
working-directory: ${{ github.workspace }}
run: |
cd .\build
.\prepare-depot.ps1
- name: Build CEF
working-directory: ${{ github.workspace }}
run: |
cd .\build
.\build.ps1
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release_build
path: chromium_git/chromium/src/cef/binary_distrib/*.zip
- name: Create draft release
uses: softprops/action-gh-release@v2
with:
draft: true
name: ${{ format('build-{0}', github.run_id) }}
files: chromium_git/chromium/src/cef/binary_distrib/*.zip