Skip to content

Commit

Permalink
Try installing in the script i guess (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrobstory authored Oct 17, 2023
1 parent d2fa09f commit d70c15f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/add_binaries_to_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
with:
toolchain: stable
- run: rustup component add rustfmt
- run: sudo apt install hub
- name: Build and upload artifact
run: ./.github/workflows/build_binaries.sh ${{ matrix.os }} ${{ matrix.platform }} merge-app puller-app pusher-app
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if [ -z "$TARGET_PLATFORM" ]; then
fi

if [[ "$TARGET_OS" =~ macos.* ]]; then
brew install hub
export TARGET_OS=macos
export SDKROOT=$(xcrun -sdk macosx --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)
Expand All @@ -41,6 +42,7 @@ fi
if [[ "$TARGET_OS" =~ ubuntu.* ]]; then
TARGET_OS=linux
sudo apt install -y musl-tools
sudo apt install -y hub
rustup target add x86_64-unknown-linux-musl
CROSS_BUILD_TARGET="--target=x86_64-unknown-linux-musl"
APP_DIR="target/x86_64-unknown-linux-musl/release/"
Expand Down

0 comments on commit d70c15f

Please sign in to comment.