Skip to content

feat!: Update webview, add linux ARM target (#189) #31

feat!: Update webview, add linux ARM target (#189)

feat!: Update webview, add linux ARM target (#189) #31

Workflow file for this run

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,
macos-13,
windows-latest,
ubuntu-latest,
ubuntu-24.04-arm,
]
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install deno
uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- name: install webkit2gtk (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y webkitgtk-6.0 libwebkitgtk-6.0-dev cmake ninja-build clang pkg-config libgtk-4-dev
- name: Install ninja (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install ninja
brew install llvm
echo "WEBVIEW_CLANG_FORMAT_EXE=$(brew --prefix llvm)/bin/clang-format" >> $GITHUB_ENV
- name: Install ninja (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install ninja
- 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.aarch64.dylib
# build/libwebview.x86_64.so
# build/libwebview.aarch64.so
# build/webview.dll
# build/Webview2Loader.dll