Skip to content

chore(just): Update default recipe #31

chore(just): Update default recipe

chore(just): Update default recipe #31

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
name: CI
on:
pull_request:
push:
branches:
- "develop"
- "master"
schedule:
- cron: "0 0 * * 0"
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os-alias:
- ubuntu
- macos
- windows
include:
- os-alias: ubuntu
os: ubuntu-24.04
- os-alias: macos
os: macos-14
- os-alias: windows
os: windows-2022
steps:
- name: Set Git to use LF
if: matrix.os == 'windows-2022'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Zig environment
uses: goto-bus-stop/[email protected]
with:
version: 0.13.0
- name: Build a project
run: zig build --summary all
- name: Run tests
run: zig build test --summary all
fmt:
name: Format
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Zig environment
uses: goto-bus-stop/[email protected]
with:
version: 0.13.0
- name: Check code formatted
run: zig fmt --check .