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