add action to automatically build

This commit is contained in:
ading2210 2024-01-28 22:30:02 -08:00
parent 23d1651383
commit a7be55fd23
2 changed files with 54 additions and 12 deletions

26
.github/workflows/build.yaml vendored Normal file
View file

@ -0,0 +1,26 @@
name: build
run-name: Build libcurl.js
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: download repo
uses: actions/checkout@v4
- name: install deps
run: |
sudo apt-get update
sudo apt-get install -y make cmake emscripten autoconf automake libtool pkg-config wget xxd
- name: run build
working-directory: ./client
run: ./build.sh all
- name: upload img
uses: actions/upload-artifact@v4
with:
name: out
path: client/out/*
compression-level: 9