Skip to content

Commit e08aefc

Browse files
committed
Create zig CI workflow
Creating a zig CI workflow for testing CSV parser automatically
1 parent 4822cbe commit e08aefc

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/zigup.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Zigup CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
branches: [ "main" ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v4
27+
28+
# Runs a single command using the runners shell
29+
- name: Fetch zigup
30+
run: curl -L https://github.com/marler8997/zigup/releases/download/v2024_05_05/zigup-x86_64-linux.tar.gz | tar xz
31+
32+
# Runs a single command using the runners shell
33+
- name: Make zigup executable
34+
run: chmod +x ./zigup
35+
36+
# Runs a set of commands using the runners shell
37+
- name: Test with 0.13.0
38+
run: |
39+
./zigup fetch 0.13.0
40+
./zigup run 0.13.0 build test
41+
42+
# Run with supported dev branch
43+
- name: Test with supported dev
44+
run: |
45+
./zigup fetch 0.14.0-dev.1951+857383689
46+
./zigup run 0.14.0-dev.1951+857383689 build test
47+
48+
# Run with supported latest master
49+
- name: Test with latest master
50+
run: |
51+
./zigup fetch master
52+
./zigup run master build test

0 commit comments

Comments
 (0)