mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
feat: zig-sqlite.
This commit is contained in:
62
zig-vendor/zig-sqlite/.github/workflows/main.yml
vendored
Normal file
62
zig-vendor/zig-sqlite/.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
create:
|
||||
push:
|
||||
branches: master
|
||||
paths:
|
||||
- '**.zig'
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 13 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: master
|
||||
- run: zig fmt --check *.zig
|
||||
|
||||
test-in-memory:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-24.04, windows-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: master
|
||||
|
||||
- name: Install qemu
|
||||
if: ${{ matrix.os == 'ubuntu-24.04' }}
|
||||
run: |
|
||||
sudo apt-get update -y && sudo apt-get install -y qemu-user-binfmt
|
||||
|
||||
- name: Restore cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
zig-cache
|
||||
~/.cache/zig
|
||||
key: ${{ runner.os }}-${{ matrix.os }}-zig-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig-
|
||||
|
||||
- name: Run Tests in memory
|
||||
if: ${{ matrix.os == 'ubuntu-24.04' }}
|
||||
run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine
|
||||
- name: Run Tests in memory
|
||||
if: ${{ matrix.os != 'ubuntu-24.04' }}
|
||||
run: zig build test -Dci=true -Din_memory=true --summary all
|
||||
Reference in New Issue
Block a user