-
Notifications
You must be signed in to change notification settings - Fork 123
64 lines (60 loc) · 1.77 KB
/
osx-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: MacOS arm64
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PKG_DATE: 20241122
PLATFORM: osx
ARCHITECTURES: arm64
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
jobs:
make-osx-arm64:
strategy:
matrix:
os: [macos-14]
# ruby-version: [3.0.7] # Pre 3.1.0 builds with openssl 1.1.1
ruby-version: [3.1.6, 3.2.6, 3.3.6]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: download osx arm64 runtime
run: ./scripts/download-osx-runtime.sh
env:
RUBY_VERSIONS: ${{ matrix.ruby-version }}
- name: build arm64
run: |
ls /Applications/Xcode*
cd osx
rake stash_conflicting_paths
rake --trace
rake unstash_conflicting_paths
ls
env:
RUBY_VERSIONS: ${{ matrix.ruby-version }}
# - name: package osx arm64 runtime
# run: ./scripts/package-osx-runtime.sh
# env:
# RUBY_VERSIONS: ${{ matrix.ruby-version }}
# - name: 'Upload Runtime - osx arm64'
# uses: actions/upload-artifact@v3
# with:
# name: osx-runtime-arm64-gha-openssl_1_1.tar.gz
# path: osx/osx-runtime-*.tar.gz
- name: package gems
run: ./scripts/package-gems.sh
env:
PLATFORM: osx
- name: 'Upload Artifact- osx arm64'
uses: actions/upload-artifact@v3
with:
name: traveling-ruby-${{ env.PKG_DATE }}-${{ matrix.ruby-version }}-osx-arm64.tar.gz
path: osx/traveling-ruby*.tar.gz
- name: test
run: |
cd osx
rake test
env:
RUBY_VERSIONS: ${{ matrix.ruby-version }}