From 56e7a3a583d31685d7495b969e0039ac4b368f94 Mon Sep 17 00:00:00 2001 From: prikolium-cfx <165383443+prikolium-cfx@users.noreply.github.com> Date: Fri, 17 May 2024 17:00:59 +0200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0a2ed5e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: V8 Build CI + +on: + workflow_dispatch: + +jobs: + build: + runs-on: windows-2022 + + steps: + - name: Support longpaths + run: git config --global core.longpaths true + + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Prepare Depot + working-directory: ${{ github.workspace }} + run: | + .\build\prepare-depot.ps1 + + - name: Build V8 + working-directory: ${{ github.workspace }} + run: | + .\build\build.ps1 + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: release_build + path: build_results/*.lib + + - name: Create draft release + uses: softprops/action-gh-release@v2 + with: + draft: true + name: ${{ format('build-{0}', github.run_id) }} + tag_name: ${{ format('build-{0}', github.run_id) }} + files: build_results/*.lib