Skip to content

Set up your GitHub Actions workflow with a specific version of Zig (https://ziglang.org/).

License

Notifications You must be signed in to change notification settings

tisonkun/setup-zig

 
 

Repository files navigation

Setup Zig

setup-zig status release release date

This action provides the following functionality for GitHub Actions users:

  • Downloading and caching distribution of the requested Zig version, and adding it to the PATH

Usage

See action.yml.

Basic:

steps:
  - uses: actions/checkout@v3
  - uses: korandoru/setup-zig@v1
    with:
      zig-version: 0.9.1 # released versions or master
  - run: zig build test

The zig-version input is required. Options include all released versions or "master".

The action will first check the local cache for a semver match. If unable to find a specific version in the cache, the action will attempt to download a version of Zig.

For information regarding locally cached versions of Zig on GitHub hosted runners, check out GitHub Actions Runner Images.

Matrix Testing

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        zig: [ 0.9.1, 0.8.1, master ]
    name: Zig ${{ matrix.zig }} sample
    steps:
      - uses: actions/checkout@v3
      - name: Setup Zig
        uses: korandoru/setup-zig@v1
        with:
          zig-version: ${{ matrix.zig }}
      - run: zig build test

License

The scripts and documentation in this project are released under the Apache License 2.0.

About

Set up your GitHub Actions workflow with a specific version of Zig (https://ziglang.org/).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.2%
  • JavaScript 25.5%
  • Zig 9.3%