mirror of
https://github.com/zoriya/zig-wayland.git
synced 2026-06-01 02:18:19 +00:00
ci: update to zig 0.9.0
This commit is contained in:
@@ -9,11 +9,11 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
name: voidlinux
|
||||
name: voidlinux glibc
|
||||
|
||||
jobs:
|
||||
default_build:
|
||||
name: build and test
|
||||
name: build/test/fmt
|
||||
runs-on: ubuntu-latest
|
||||
container: voidlinux/voidlinux:latest
|
||||
|
||||
@@ -22,7 +22,13 @@ jobs:
|
||||
run: |
|
||||
xbps-install -Sy xbps
|
||||
xbps-install -uy
|
||||
xbps-install -y zig wayland-devel wayland-protocols pkgconf git gcc
|
||||
xbps-install -y wayland-devel wayland-protocols pkgconf git gcc wget tar xz
|
||||
|
||||
wget https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz
|
||||
tar -xvf zig-linux-x86_64-0.9.0.tar.xz
|
||||
mv zig-linux-x86_64-0.9.0/zig /usr/bin/
|
||||
mv zig-linux-x86_64-0.9.0/lib /usr/lib/zig
|
||||
zig env
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -35,21 +41,6 @@ jobs:
|
||||
run: |
|
||||
zig build test
|
||||
|
||||
zig_fmt:
|
||||
name: zig fmt
|
||||
runs-on: ubuntu-latest
|
||||
container: voidlinux/voidlinux:latest
|
||||
|
||||
steps:
|
||||
- name: install deps
|
||||
run: |
|
||||
xbps-install -Sy xbps
|
||||
xbps-install -uy
|
||||
xbps-install -y zig git
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: fmt
|
||||
run: |
|
||||
zig fmt --check src/
|
||||
|
||||
Reference in New Issue
Block a user