Skip to content

0.10.9: emscripten 3.1.63 #53

0.10.9: emscripten 3.1.63

0.10.9: emscripten 3.1.63 #53

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
jobs:
build-ubuntu:
uses: ./.github/workflows/build.yml
with:
os: ubuntu-latest
build-macos-x86:
uses: ./.github/workflows/build.yml
with:
os: macos-13
build-macos-arm:
uses: ./.github/workflows/build.yml
with:
os: macos-14
build-windows:
uses: ./.github/workflows/build.yml
with:
os: windows-latest
test:
needs: build-ubuntu
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
browser: [chromium, firefox] # webkit
include:
- os: macos-14
browser: webkit
steps:
- uses: actions/checkout@v4
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: 21.x
- name: Install node dependencies
run: |
npm i -g pnpm
pnpm i
npx playwright install ${{ matrix.browser }}
npx playwright install-deps ${{ matrix.browser }}
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact.tar
- name: Untar files
run: tar -xvf artifact.tar
- name: Test
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
npx playwright test --browser ${{ matrix.browser }} test/
- name: Test device
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
npx playwright test --browser ${{ matrix.browser }} test-device/
release:
needs: test
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact.tar
- name: Untar files
run: tar -xvf artifact.tar
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mv dist my-rime-dist
zip -r my-rime-dist.zip my-rime-dist
gh release upload latest my-rime-dist.zip --clobber