Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed May 18, 2024
1 parent cb390d5 commit 8bf1e72
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 2 additions & 6 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ runs:
rm shaderc.zip
- name: install shaderc
shell: bash
if: inputs.os == 'ubuntu-latest'
if: inputs.shaderc && inputs.os == 'ubuntu-latest'
run: |
curl -L https://storage.googleapis.com/shaderc/artifacts/prod/graphics_shader_compiler/shaderc/linux/continuous_clang_release/453/20240430-112351/install.tgz > shaderc.tgz
tar -xzf shaderc.tgz
echo "SHADERC_LIB_DIR=$GITHUB_WORKSPACE/install/lib" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install/lib" >> $GITHUB_ENV
rm shaderc.tgz
sudo apt-get install build-essential cmake git ninja-build
- name: install shaderc
shell: bash
if: inputs.os == 'macos-latest'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: fetch submodule
run: |
git submodule update --init --recursive autd3

- name: Setup
if: needs.check-src.outputs.status
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
npm install
- name: Check license
run: |
git submodule update --init --recursive autd3
git submodule update --init tools/autd3-license-check
cd tools/license-checker
cargo run
Expand Down Expand Up @@ -68,9 +67,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: fetch submodule
run: |
git submodule update --init --recursive autd3

- name: Setup
uses: ./.github/actions/setup-build
Expand Down
7 changes: 7 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ def is_shaderc_available(self):
if not self.is_windows():
if os.path.isfile(f"/usr/local/lib/{shaderc_lib_name}"):
return True
if (
shutil.which("git") is not None
and shutil.which("cmake") is not None
and shutil.which("python3") is not None
and shutil.which("ninja")
):
return True
return False


Expand Down

0 comments on commit 8bf1e72

Please sign in to comment.