fix: main thread check in deno 2 (#177) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/**" | |
- "script/build.*" | |
- "src/ffi.ts" | |
- "webview/**" | |
- ".gitmodules" | |
- "deno.json" | |
jobs: | |
build: | |
name: ${{ matrix.kind }} ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: install webkit2gtk (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.0 | |
- name: Build dynamic library | |
run: deno task build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
path: | | |
build/*.dll | |
build/*.dylib | |
build/*.so | |
# - name: Release Plugin | |
# uses: softprops/action-gh-release@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# tag_name: "webview_deno release" | |
# draft: true | |
# files: | | |
# build/libwebview.x86_64.dylib | |
# build/libwebview.so | |
# build/webview.dll | |
# build/Webview2Loader.dll |