https://github.com/shavit/zig-install-action
Action to download and use Zig
https://github.com/shavit/zig-install-action
github-actions zig
Last synced: 9 months ago
JSON representation
Action to download and use Zig
- Host: GitHub
- URL: https://github.com/shavit/zig-install-action
- Owner: shavit
- Created: 2023-05-14T12:41:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-31T15:29:46.000Z (11 months ago)
- Last Synced: 2025-01-31T16:35:50.795Z (11 months ago)
- Topics: github-actions, zig
- Language: Shell
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zig Install
> Use Zig in GitHub Actions.

## Examples
1. Compile and test a project
```
---
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: shavit/zig-install-action@v0.1.0
- name: Run tests
run: |
zig build test
```
2. Install a specific build
```
$ . install.sh master x86_64-linux
```
```
Usage: install.sh [version] [flavour]
Version:
master
0.9.1
0.9.0
0.8.1
0.8.0
0.7.1
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.10.1
0.10.0
0.1.1
Flavour:
x86_64-macos
aarch64-macos
x86_64-linux
aarch64-linux
riscv64-linux
powerpc64le-linux
powerpc-linux
x86-linux
x86_64-windows
aarch64-windows
x86-windows
```