Remove serve for now #43
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 Zig SQLite Extension | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build for ${{ matrix.arch }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: [x86_64] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: master | |
- name: Install libyaml & SQLite | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libyaml-dev libsqlite3-dev libcmark-gfm-dev libcmark-gfm-extensions-dev | |
- name: Build SQLite extension | |
working-directory: ./markdown_files | |
run: | | |
zig build -Doptimize=ReleaseFast | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sqlite-extension-${{ matrix.arch }} | |
path: markdown_files/zig-out/lib/libmarkdown_files.so |