Skip to content

Commit

Permalink
build: fix up the zig version printing
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information
berezovskyi committed Jul 17, 2023
1 parent ca74f1f commit e2fa24a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@ jobs:
fail-fast: false
matrix:
include:
- zigver: '0.9.0'
zigdev: false
- zigver: '0.9.1'
zigdev: false
# no member named 'mode' in struct 'std.fs.file.OpenFlags'
# - zigver: '0.9.0'
# zigdev: false
# - zigver: '0.9.1'
# zigdev: false
- zigver: '0.10.0'
zigdev: false
- zigver: '0.10.1'
zigdev: false
# https://marler8997.github.io/zig-unofficial-releases/
- zigver: '0.11.0-dev.1507+6f13a725a'
zigdev: true
# no field or member function named 'standardReleaseOptions' in 'Build'
- zigver: '0.11.0-dev.4003+c6aa29b6f'
zigdev: true
steps:
- uses: actions/checkout@v3
- name: Docker Compose multi-stage build
run: |
zig version
docker-compose -f docker-compose.yml.sample build --build-arg "ZIGVER=${{ matrix.zigver }}" --build-arg "ZIGDEV=${{ matrix.zigdev }}"
2 changes: 1 addition & 1 deletion Dockerfile.logger
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN { ${ZIGDEV} && curl https://ziglang.org/builds/zig-linux-x86_64-${ZIGVER}.ta

COPY . /app
WORKDIR /app
RUN /opt/zig/zig build -Dtarget=x86_64-linux
RUN /opt/zig/zig version && /opt/zig/zig build -Dtarget=x86_64-linux

FROM debian:12-slim

Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.publisher
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ RUN { ${ZIGDEV} && curl https://ziglang.org/builds/zig-linux-x86_64-${ZIGVER}.ta

COPY . /app
WORKDIR /app
RUN /opt/zig/zig build -Dtarget=x86_64-linux

RUN /opt/zig/zig version && /opt/zig/zig build -Dtarget=x86_64-linux

FROM debian:12-slim

Expand Down

0 comments on commit e2fa24a

Please sign in to comment.