feat: jsr integration #11
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Install dependencies (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install xorg-dev libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules | |
- name: Setup Deno | |
uses: denoland/setup-deno@main | |
with: | |
deno-version: 'v1.x' | |
- name: Build | |
run: deno task build | |
- name: Release | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: softprops/action-gh-release@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: "Release Draft" | |
draft: true | |
files: | | |
libglfw3.so | |
libglfw3.dylib | |
glfw3.dll | |
glfw3_linux.js | |
glfw3_darwin.js | |
glfw3_windows.js |