Skip to content

Commit

Permalink
[ci skip] add bitrise.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Aug 15, 2022
1 parent 0f7bd3f commit d3a8ec1
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bitrise.yml
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
28 changes: 28 additions & 0 deletions build/bitrise.sh
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]

0 comments on commit d3a8ec1

Please sign in to comment.