Skip to content

Commit

Permalink
fix bad if
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed May 15, 2024
1 parent 0e6bc61 commit a9e73c7
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,13 @@ jobs:
echo "PKG_CONFIG_PATH=${prefix}/opt/sqlite/lib/pkgconfig:${prefix}/opt/libpq/lib/pkgconfig:${prefix}/opt/mysql-client/lib/pkgconfig" >> ${GITHUB_ENV}
- name: Run examples(Unix)
run: |
TARGET="aarch64-macos"
if [ `uname -s` = "Linux" ]; then
TARGET="x86_64-linux"
fi
pkg-config --libs --cflags libpq mysqlclient
zig fmt --check src/
zig build -Dtarget="${TARGET}"
zig build run-all -Dtarget="${TARGET}" --summary all
- name: Run examples(Windows)
if: matrix.os == 'windows-latest'
run: |
zig.exe fmt --check src/
zig.exe build
zig.exe build run-all --summary all
if [ `uname -s` = "Linux" ]; then
zig build
zig build run-all --summary all
else
TARGET="aarch64-macos"
zig build -Dtarget="${TARGET}"
zig build run-all -Dtarget="${TARGET}" --summary all
fi

0 comments on commit a9e73c7

Please sign in to comment.