Skip to content

Commit

Permalink
Update universal bundles to MacOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Sep 23, 2024
1 parent 365978c commit d526546
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- id: reset
name: Reset homebrew to bigsur
run: ./lib/bigsur-reset.sh
# - id: reset
# name: Reset homebrew to bigsur
# run: ./lib/bigsur-reset.sh

- id: bundle
name: Create bundles
Expand Down
12 changes: 6 additions & 6 deletions lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ deploy_bundle() {
fi
rm -f $file
echo "OK! $file"
if [ "$GITHUB_OUTPUT" ] && [ "$target" = "big_sur" ]; then
if [ "$GITHUB_OUTPUT" ] && [ "$target" = "ventura" ]; then
echo "VERSION=$version" >> $GITHUB_OUTPUT
fi
done
Expand All @@ -111,8 +111,8 @@ deploy_bundle() {

# Copy MacOS system pc files
if [ "$package" == "cranbundle" ]; then
# TODO: maybe version this by $target instead of hardcoding big_sur (11)
cp -v $(brew --repo)/Library/Homebrew/os/mac/pkgconfig/11/* ${bundle}/lib/pkgconfig
# TODO: maybe version this by $target instead of hardcoding ventura (13)
cp -v $(brew --repo)/Library/Homebrew/os/mac/pkgconfig/13/* ${bundle}/lib/pkgconfig
fi

# Run tests if running on appropriate machine
Expand Down Expand Up @@ -150,7 +150,7 @@ deploy_new_bundles(){
brew tap autobrew/cran
jq --version || brew install jq
brew --version
local targets="big_sur arm64_big_sur"
local targets="ventura arm64_ventura"
for target in $targets
do
deploy_bundle $target "${@:1}"
Expand Down Expand Up @@ -182,8 +182,8 @@ deploy_oldold_bundles(){

merge_universal_bundles(){
local formula=$1
local input1="big_sur"
local input2="arm64_big_sur"
local input1="ventura"
local input2="arm64_ventura"
local output="universal"
local file1=$(echo dist/${formula}*-${input1}.tar.xz)
local file2="${file1//$input1/$input2}"
Expand Down
2 changes: 1 addition & 1 deletion libgit2.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
source lib/functions.sh
export package=libgit2
export deps="libssh2 openssl@1.1"
export deps="libssh2 openssl@3"
#deploy_linux_bundles libgit2-static
deploy_new_bundles libgit2-static
merge_universal_bundles libgit2

0 comments on commit d526546

Please sign in to comment.