Skip to content

Commit

Permalink
🐞 fix: Change ZLib to zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Aug 24, 2024
1 parent c09b0c7 commit c560f58
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ jobs:
run: |
brew install autoconf automake libtool pkg-config zlib wxwidgets
- name: Build ZLib
- name: Build zlib
run: |
cd ..
curl -o zlib.tar.gz https://www.zlib.net/zlib-1.3.1.tar.gz
tar -xzvf zlib.tar.gz
mv zlib-1.3.1 ZLib
mv zlib-1.3.1 zlib
rm zlib.tar.gz
cd ZLib
cd zlib
./configure --static
make -j 4
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,18 @@ jobs:
with:
cmake-version: '3.28.x'

- name: Build ZLib
- name: Build zlib
run: |
cd ..
curl -o zlib.zip https://www.zlib.net/zlib131.zip
7z x zlib.zip
move zlib-1.3.1 ZLib
move zlib-1.3.1 zlib
del zlib.zip
cd ZLib
cd zlib
md build
cd build
cmake -A x64 ..\
cmake --build . --config Release
copy zconf.h ..\
- name: Download ZenLib
run: |
Expand Down
12 changes: 6 additions & 6 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ brew install autoconf automake libtool pkg-config zlib wxwidgets
```sh
curl -o zlib.tar.gz https://www.zlib.net/zlib-1.3.1.tar.gz
tar -xzvf zlib.tar.gz
mv zlib-1.3.1 ZLib
mv zlib-1.3.1 zlib
rm zlib.tar.gz
```

* Build ZLib.
* Build zlib.

```sh
cd ZLib
cd zlib
./configure --static
make -j`nproc`
```
Expand Down Expand Up @@ -61,14 +61,14 @@ make -j`nproc`
```sh
curl -o zlib.zip https://www.zlib.net/zlib131.zip
7z x zlib.zip
move zlib-1.3.1 ZLib
move zlib-1.3.1 zlib
del zlib.zip
```

* Build ZLib.
* Build zlib.

```sh
cd ZLib
cd zlib
md build
cd build
cmake -A x64 ..\
Expand Down

0 comments on commit c560f58

Please sign in to comment.