Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

un-Nix in CI. #8

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
on: [push, pull_request]

name: build

on:
push:
pull_request:

jobs:
zig:
name: Build and test
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- run: zig build
- run: zig build test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix flake check -L
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
- run: zig fmt --check build.zig src/*.zig
99 changes: 0 additions & 99 deletions flake.lock

This file was deleted.

40 changes: 0 additions & 40 deletions flake.nix

This file was deleted.

6 changes: 6 additions & 0 deletions zig.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id: mr0i9fhju8jho92xf5lct4ywf2hqzjf2esi3jwx87jolclc3
name: htmlentities
main: src/main.zig
license: MIT
description: HTML entity data for Zig.
dependencies:
Loading