Skip to content

Commit

Permalink
simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Sep 27, 2023
1 parent 5ba5114 commit 30b1a98
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ jobs:
with:
python-version: '3.10'

- name: Install dependencys
run: |
sudo apt --fix-broken install
sudo apt update
sudo apt install cmake clang doxygen g++ extra-cmake-modules libgif-dev libjpeg-dev ninja-build libgoogle-perftools-dev libunwind-dev
- name: Build and install libjxl
run: |
git clone https://github.com/libjxl/libjxl.git --recursive --shallow-submodules
cd libjxl
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF ..
cmake --build . -- -j$(nproc)
sudo cmake --install .
# - name: Install dependencys
# run: |
# sudo apt --fix-broken install
# sudo apt update
# sudo apt install cmake clang doxygen g++ extra-cmake-modules libgif-dev libjpeg-dev ninja-build libgoogle-perftools-dev libunwind-dev
# - name: Build and install libjxl
# run: |
# git clone https://github.com/libjxl/libjxl.git --recursive --shallow-submodules
# cd libjxl
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF ..
# cmake --build . -- -j$(nproc)
# sudo cmake --install .

- name: Build wheels
uses: PyO3/maturin-action@v1
Expand All @@ -57,8 +57,11 @@ jobs:
sccache: 'true'
manylinux: auto
docker-options: |
-e DEP_JXL_LIB=${{ github.workspace }}/libjxl/build/lib
-e RUST_BACKTRACE=1
before-script-linux: |
sudo apt --fix-broken install
sudo apt update
sudo apt install cmake clang doxygen g++ extra-cmake-modules libgif-dev libjpeg-dev ninja-build libgoogle-perftools-dev libunwind-dev
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 30b1a98

Please sign in to comment.