Skip to content

Commit

Permalink
Drop support darwin-amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Feb 17, 2024
1 parent 8df2364 commit 570029f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ jobs:
needs: build
strategy:
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: [ubuntu-latest, macos-14, windows-latest]
include:
- runs-on: ubuntu-latest
os-arch: linux-amd64
- runs-on: macos-latest
os-arch: darwin-amd64
os-arch: darwin-arm64
- runs-on: windows-latest
os-arch: windows-amd64
runs-on: ${{ matrix.runs-on }}
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ You can download rf from the [Release page](https://github.com/buty4649/rf/relea
Binary files are provided for each platform and architecture.
Please refer to the following table for each corresponding status.

| | amd64 | arm64|
|-----|-------|------|
|Linux| ||
|MacOS| ||
|Windows||- |
| | amd64 | arm64|
|-------|-------|------|
|Linux | ||
|MacOS |- ||
|Windows| |- |

You can also install it using each package manager as another method.

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end
def build_targets
%w[
linux-amd64 linux-arm64
darwin-amd64 darwin-arm64
darwin-arm64
windows-amd64
]
end
Expand Down
19 changes: 0 additions & 19 deletions build_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,6 @@ def build_cc_defines(conf)
end
end

if build_targets.include?('darwin-amd64')
MRuby::CrossBuild.new('darwin-amd64') do |conf|
macos_sdk = ENV.fetch('MACOSX_SDK_PATH').shellescape

build_config(conf, 'x86_64-macos', strip: true)
conf.cc.flags += ['-Wno-overriding-t-option', '-mmacosx-version-min=10.14',
'-isysroot', macos_sdk, '-iwithsysroot', '/usr/include',
'-iframeworkwithsysroot', '/System/Library/Frameworks']
conf.linker.flags += ['-Wno-overriding-t-option', '-mmacosx-version-min=10.14',
'--sysroot', macos_sdk, '-F/System/Library/Frameworks', '-L/usr/lib']
conf.archiver.command = 'zig ar'
ENV['RANLIB'] ||= 'zig ranlib'
conf.host_target = 'x86_64-darwin'

debug_config(conf)
gem_config(conf)
end
end

if build_targets.include?('darwin-arm64')
MRuby::CrossBuild.new('darwin-arm64') do |conf|
macos_sdk = ENV.fetch('MACOSX_SDK_PATH').shellescape
Expand Down

0 comments on commit 570029f

Please sign in to comment.