Skip to content

Commit

Permalink
ci: Remove rimraf before make package (#3393)
Browse files Browse the repository at this point in the history
* ci: Remove rimraf before `make package`
* Use `|| brew link --overwrite pkgconf`
* jsdec.sh: Use `mkdir -p`
* rz-libyara.sh: Use `mkdir -p`
  • Loading branch information
kazarmy authored Nov 24, 2024
1 parent f2692cb commit 3ddb1b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ jobs:
cd scripts
rm /usr/local/bin/2to3* # symlink to some kind of existing python2.7 installation conflicts with brew python3 which gets installed as indirect dependency
brew bundle
brew install pkg-config || brew link --overwrite pkgconf
brew install kadwanev/brew/retry
- name: py dependencies
run: |
Expand Down Expand Up @@ -487,8 +488,7 @@ jobs:
# https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641
echo killing XProtectBehaviorService; sudo pkill -9 XProtect >/dev/null || true;
echo waiting for XProtectBehaviorService kill; while pgrep XProtect; do sleep 3; done;
# Rimraf plugins built by `make package` because jsdec cannot be built twice
retry 'rm -rf ../jsdec ../libswift ../rz_libyara ../rz-silhouette; make package'
retry make package
export CUTTER_VERSION=$(python3 ../scripts/get_version.py)
echo PACKAGE_NAME=${PACKAGE_NAME}.dmg >> $GITHUB_ENV
echo PACKAGE_PATH=build/${PACKAGE_NAME}.dmg >> $GITHUB_ENV
Expand Down
1 change: 0 additions & 1 deletion scripts/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ brew "xz"
brew "llvm"
brew "meson"
brew "coreutils"
brew "pkg-config"
2 changes: 1 addition & 1 deletion scripts/jsdec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ fi
meson setup --buildtype=release --pkg-config-path="$INSTALL_PREFIX/lib/pkgconfig" -Dbuild_type=cutter build_lib
ninja -C build_lib

mkdir build_plugin && cd build_plugin
mkdir -p build_plugin && cd build_plugin
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DJSDEC_BUILD_DIR="../build_lib" -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" $EXTRA_CMAKE_OPTS ../cutter-plugin
ninja install
2 changes: 1 addition & 1 deletion scripts/rz-libyara.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ meson --buildtype=release --pkg-config-path="$INSTALL_PREFIX/lib/pkgconfig" --pr
ninja -C build install

cd cutter-plugin
mkdir build && cd build
mkdir -p build && cd build
cmake -G Ninja -DRIZIN_INSTALL_PLUGDIR="../build" -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" $EXTRA_CMAKE_OPTS ..
ninja
ninja install

0 comments on commit 3ddb1b9

Please sign in to comment.