Skip to content

Merge pull request #4 from allyourcodebase/fix-cross-compile-on-macos #21

Merge pull request #4 from allyourcodebase/fix-cross-compile-on-macos

Merge pull request #4 from allyourcodebase/fix-cross-compile-on-macos #21

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: ["master", "0.13.0"]
os: [ubuntu-latest, macos-latest, windows-latest]
optimize: [ReleaseSafe, ReleaseFast]
build-options: ["-Dlto"]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: false
- name: Set up Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ matrix.zig-version }}
use-cache: false
- name: Run `build`
run: zig build ${{ matrix.build-options }} -Doptimize=${{ matrix.optimize }} --summary all
# Test allyourcodebase/lmdb#3
- name: Run `build tools`
run: zig build tools -Dtarget=x86_64-macos-none --summary all
run: zig build tools -Dtarget=x86_64-windows-gnu --summary all

Check failure on line 42 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 42, Col: 9): 'run' is already defined
test:
strategy:
fail-fast: false
matrix:
zig-version: ["master", "0.13.0"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: false
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ matrix.zig-version }}
use-cache: false
- name: Run `Test`
run: zig build test --summary all
- name: Install `Test`
run: zig build install-test --summary all