Skip to content

Commit 2c35b32

Browse files
committed
Add CFLAGS="-Wno-date-time" to work around mimalloc compilation error
1 parent 8927c25 commit 2c35b32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Release build Linux-x86-64
4343
run: |
4444
rustup target add x86_64-unknown-linux-musl
45-
env RUSTFLAGS="-C strip=symbols" cargo zigbuild --release --target x86_64-unknown-linux-musl
45+
env RUSTFLAGS="-C strip=symbols" CFLAGS="-Wno-date-time" cargo zigbuild --release --target x86_64-unknown-linux-musl
4646
mkdir doh-proxy
4747
mv target/x86_64-unknown-linux-musl/release/doh-proxy doh-proxy/
4848
cp README.md localhost.pem doh-proxy/
@@ -52,7 +52,7 @@ jobs:
5252
- name: Release build Linux-aarch64
5353
run: |
5454
rustup target add aarch64-unknown-linux-musl
55-
env RUSTFLAGS="-C strip=symbols" cargo zigbuild --release --target aarch64-unknown-linux-musl
55+
env RUSTFLAGS="-C strip=symbols" CFLAGS="-Wno-date-time" cargo zigbuild --release --target aarch64-unknown-linux-musl
5656
mkdir doh-proxy
5757
mv target/aarch64-unknown-linux-musl/release/doh-proxy doh-proxy/
5858
cp README.md localhost.pem doh-proxy/
@@ -72,9 +72,9 @@ jobs:
7272
- name: Debian packages
7373
run: |
7474
rustup target add x86_64-unknown-linux-musl
75-
env RUSTFLAGS="-C strip=symbols" cargo deb --no-strip --cargo-build=zigbuild --target=x86_64-unknown-linux-musl
75+
env RUSTFLAGS="-C strip=symbols" CFLAGS="-Wno-date-time" cargo deb --no-strip --cargo-build=zigbuild --target=x86_64-unknown-linux-musl
7676
rustup target add aarch64-unknown-linux-musl
77-
env RUSTFLAGS="-C strip=symbols" cargo deb --no-strip --cargo-build=zigbuild --target=aarch64-unknown-linux-musl
77+
env RUSTFLAGS="-C strip=symbols" CFLAGS="-Wno-date-time" cargo deb --no-strip --cargo-build=zigbuild --target=aarch64-unknown-linux-musl
7878
7979
- name: RPM packages
8080
run: |

0 commit comments

Comments
 (0)