-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
format_version: '11' | ||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | ||
project_type: other | ||
workflows: | ||
primary: | ||
steps: | ||
- activate-ssh-key@4: | ||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | ||
- git-clone@6: {} | ||
- script@1: | ||
inputs: | ||
- content: |- | ||
#!/bin/bash | ||
exec bash build/run.sh | ||
- deploy-to-bitrise-io@2: | ||
inputs: | ||
- deploy_path: darwin-arm64 | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-13.4.x | ||
machine_type_id: g2-m1.8core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
sw_vers | ||
uname -a | ||
|
||
export HOMEBREW_NO_AUTO_UPDATE=1 | ||
brew unlink $(brew list --formula) | ||
brew install xz coreutils gnu-tar | ||
brew link --force xz coreutils gnu-tar | ||
|
||
curl -fsSL --compressed -o ~/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm | ||
perl ~/cpm install --sudo -g --cpmfile build/cpm.yml | ||
sudo rm -rf /opt/perl | ||
sudo install -m 755 -o $USER -g staff -d /opt/perl | ||
perl build/relocatable-perl-build --prefix /opt/perl --perl_version 5.36.0 | ||
/opt/perl/bin/perl ~/cpm install -g App::cpanminus App::ChangeShebang | ||
/opt/perl/bin/change-shebang -f /opt/perl/bin/* | ||
|
||
gcp -r /opt/perl perl-darwin-arm64 | ||
gtar cf perl-darwin-arm64.tar perl-darwin-arm64 | ||
mkdir darwin-arm64 | ||
gzip -9 --stdout perl-darwin-arm64.tar > darwin-arm64/perl-darwin-arm64.tar.gz | ||
xz -9 --stdout perl-darwin-arm64.tar > darwin-arm64/perl-darwin-arm64.tar.xz | ||
|
||
brew install [email protected] | ||
brew link --force [email protected] |