Skip to content

Commit

Permalink
simplify @ruby_install2
Browse files Browse the repository at this point in the history
  • Loading branch information
pmq20 committed Sep 20, 2020
1 parent 220e44b commit 222061d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
tag_name: linux-x64
release_name: Latest Linux Pre-release
draft: false
prerelease: false
prerelease: true
replace_old_tag: true
- name: "[Enclose.IO] Upload Linux Release"
if: ${{ github.ref == 'refs/heads/master' && success() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
tag_name: darwin-x64
release_name: Latest macOS Pre-release
draft: false
prerelease: false
prerelease: true
replace_old_tag: true
- name: "[Enclose.IO] Upload macOS Release"
if: ${{ github.ref == 'refs/heads/master' && success() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
tag_name: windows-x64
release_name: Latest Windows Pre-release
draft: false
prerelease: false
prerelease: true
replace_old_tag: true
- name: "[Enclose.IO] Upload Windows Release"
if: ${{ github.ref == 'refs/heads/master' && success() }}
Expand Down
4 changes: 1 addition & 3 deletions lib/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def initialize(entrance, options = {})
@work_dir_dummy = File.join(@options[:tmpdir], 'rubyc_work_dir_dummy')
@work_dir_dummy_squashfs = File.join(@options[:tmpdir], 'dummy.squashfs')
@build_pass2 = File.join(@options[:tmpdir], 'build_pass2')
@ruby_install2 = File.join(@options[:tmpdir], 'ruby_install2')
end

def init_entrance(entrance)
Expand Down Expand Up @@ -201,6 +200,7 @@ def run!
patch_win32_makefile_sub if Gem.win_platform?
prepare_work_dir_dummy_squashfs unless File.exist?(@work_dir_dummy_squashfs)
build_pass1 unless Dir.exist?(@ruby_install)

prepare_work_dir unless Dir.exist?(@work_dir)
ext_setup
prepare_work_dir_squashfs unless File.exist?(@work_dir_squashfs)
Expand Down Expand Up @@ -357,7 +357,6 @@ def build_pass2_unix
@utils.run(compile_pass2_env,
@ruby_configure,
'-C',
'--prefix', @ruby_install2,
"--with-baseruby=#{File.join(@ruby_install_bin, 'ruby')}",
'--enable-bundled-libyaml',
'--without-gmp',
Expand All @@ -379,7 +378,6 @@ def build_pass2_windows
@utils.run(compile_pass2_env,
'call', @ruby_configure,
'--target=x64-mswin64',
"--prefix=#{@ruby_install2}",
'--enable-bundled-libyaml',\
'--enable-debug-env',
'--disable-install-doc',
Expand Down

0 comments on commit 222061d

Please sign in to comment.