Skip to content

Commit

Permalink
add: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaro17f committed Jul 25, 2024
1 parent ffd1da4 commit ade6f53
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

permissions:
contents: write

on:
push:
tags:
- "*.*.*"
jobs:
build:
strategy:
fail-fast: false
matrix:
target: [ x86_64-linux ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: master

- name: Build
run: zig build -Doptimize=ReleaseSafe -Dtarget=${{ matrix.target }}

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: zig-out/bin/*

0 comments on commit ade6f53

Please sign in to comment.