1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Just update sources in CI without fetching

Also install external libraries only, extract-gems does not work
unless base ruby is available.
This commit is contained in:
Nobuyoshi Nakada 2020-06-16 11:44:31 +09:00
parent b52862d35f
commit 466d3e68da
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
8 changed files with 32 additions and 10 deletions

View file

@ -164,15 +164,15 @@ jobs:
${default_configure} \ ${default_configure} \
${append_configure} \ ${append_configure} \
--with-gcc="${default_cc} ${append_cc}" --with-gcc="${default_cc} ${append_cc}"
- run: $make incs - name: Update include files
run: |
$make touch-unicode-files
$make $UPDATE_UNICODE -o update-src incs
working-directory: build working-directory: build
- run: $make - run: $make
working-directory: build working-directory: build
- run: $make test - run: $make test
working-directory: build working-directory: build
- run: $make $UPDATE_UNICODE up
working-directory: build
if: "matrix.entry.name == '-O3'"
- run: $make install - run: $make install
working-directory: build working-directory: build
if: "matrix.entry.name == '-O3'" if: "matrix.entry.name == '-O3'"

View file

@ -38,6 +38,11 @@ jobs:
- name: Run configure - name: Run configure
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
working-directory: build working-directory: build
- name: Update
run: |
make touch-unicode-files
make -o update-src up
working-directory: build
- run: make $JOBS - run: make $JOBS
working-directory: build working-directory: build
- run: make prepare-gems - run: make prepare-gems

View file

@ -72,11 +72,16 @@ jobs:
# Write-Host "-------------------------------------- config.log" # Write-Host "-------------------------------------- config.log"
# Get-Content ./config.log | foreach {Write-Output $_} # Get-Content ./config.log | foreach {Write-Output $_}
- name: download unicode, gems, etc - name: update
working-directory: build
run: |
$jobs = [int](2 * $env:NUMBER_OF_PROCESSORS)
make -j $jobs incs
- name: download gems
working-directory: build working-directory: build
run: | run: |
$jobs = [int](2 * $env:NUMBER_OF_PROCESSORS) $jobs = [int](2 * $env:NUMBER_OF_PROCESSORS)
make -j $jobs update-unicode
make -j $jobs update-gems make -j $jobs update-gems
- name: make all - name: make all

View file

@ -41,6 +41,11 @@ jobs:
- name: Run configure - name: Run configure
run: ../src/configure -C --disable-install-doc run: ../src/configure -C --disable-install-doc
working-directory: build working-directory: build
- name: Update include files
run: |
make touch-unicode-files
make $JOBS -o update-src incs
working-directory: build
- run: make $JOBS - run: make $JOBS
working-directory: build working-directory: build
- run: sudo make $JOBS -s install - run: sudo make $JOBS -s install

View file

@ -55,6 +55,11 @@ jobs:
- name: Run configure - name: Run configure
run: ../src/configure -C --disable-install-doc cppflags=${{ matrix.debug }} run: ../src/configure -C --disable-install-doc cppflags=${{ matrix.debug }}
working-directory: build working-directory: build
- name: Update include files
run: |
make $JOBS touch-unicode-files
make $JOBS -o update-src up
working-directory: build
- run: make $JOBS - run: make $JOBS
working-directory: build working-directory: build
- run: make prepare-gems - run: make prepare-gems

View file

@ -55,8 +55,9 @@ jobs:
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat" call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
set YACC=win_bison set YACC=win_bison
echo on echo on
nmake up nmake touch-unicode-files
nmake extract-gems nmake incs
nmake extract-extlibs
nmake nmake
working-directory: build working-directory: build
shell: cmd shell: cmd

View file

@ -410,7 +410,7 @@ env:
- "> .rbconfig.time" - "> .rbconfig.time"
- sed -f tool/prereq.status template/Makefile.in common.mk > Makefile - sed -f tool/prereq.status template/Makefile.in common.mk > Makefile
- make touch-unicode-files - make touch-unicode-files
- make -s $JOBS $UPDATE_UNICODE up - make -s $JOBS $UPDATE_UNICODE -o update-src up
- make -s $JOBS srcs - make -s $JOBS srcs
- rm -f config.status Makefile rbconfig.rb .rbconfig.time - rm -f config.status Makefile rbconfig.rb .rbconfig.time
- $SETARCH ./configure -C --disable-install-doc --prefix=$RUBY_PREFIX --disable-rubygems 'optflags=-O0' 'debugflags=-save-temps=obj -g' - $SETARCH ./configure -C --disable-install-doc --prefix=$RUBY_PREFIX --disable-rubygems 'optflags=-O0' 'debugflags=-save-temps=obj -g'

View file

@ -47,7 +47,8 @@ for:
- echo>> Makefile BUILTIN_ENCOBJS=nul - echo>> Makefile BUILTIN_ENCOBJS=nul
- type win32\Makefile.sub >> Makefile - type win32\Makefile.sub >> Makefile
- nmake %mflags% touch-unicode-files - nmake %mflags% touch-unicode-files
- nmake %mflags% %UPDATE_UNICODE% up incs - nmake %mflags% %UPDATE_UNICODE% incs
- nmake %mflags% extract-extlibs
- del Makefile - del Makefile
- mkdir \usr\local\bin - mkdir \usr\local\bin
- mkdir \usr\local\include - mkdir \usr\local\include