mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Stop using official actions/checkout
because it has been unstable, and also it sometimes does not work for a pull request like: https://github.com/ruby/ruby/pull/2358/checks?check_run_id=192685048#step:4:17
This commit is contained in:
parent
216d230080
commit
8a687b8a4f
Notes:
git
2019-08-31 04:40:14 +09:00
3 changed files with 39 additions and 12 deletions
17
.github/workflows/macos.yml
vendored
17
.github/workflows/macos.yml
vendored
|
@ -21,10 +21,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline
|
brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline
|
||||||
- name: Checkout
|
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
|
||||||
uses: actions/checkout@master
|
- name: Checkout ruby/ruby
|
||||||
with:
|
run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA"
|
||||||
fetch-depth: 50
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
- name: Checkout a pull request
|
||||||
|
run: git clone --depth=50 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV"
|
||||||
|
env:
|
||||||
|
GITHUB_REV: ${{ github.event.pull_request.head.sha }}
|
||||||
|
GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }}
|
||||||
|
GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
- name: Set ENV
|
- name: Set ENV
|
||||||
run: |
|
run: |
|
||||||
echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu)))
|
echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu)))
|
||||||
|
|
17
.github/workflows/ubuntu.yml
vendored
17
.github/workflows/ubuntu.yml
vendored
|
@ -20,10 +20,19 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ruby2.5
|
sudo apt-get install ruby2.5
|
||||||
sudo apt-get build-dep ruby2.5
|
sudo apt-get build-dep ruby2.5
|
||||||
- name: Checkout
|
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
|
||||||
uses: actions/checkout@master
|
- name: Checkout ruby/ruby
|
||||||
with:
|
run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA"
|
||||||
fetch-depth: 50
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
- name: Checkout a pull request
|
||||||
|
run: git clone --depth=50 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV"
|
||||||
|
env:
|
||||||
|
GITHUB_REV: ${{ github.event.pull_request.head.sha }}
|
||||||
|
GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }}
|
||||||
|
GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
- name: Set ENV
|
- name: Set ENV
|
||||||
run: |
|
run: |
|
||||||
export JOBS=-j$((1 + $(nproc --all)))
|
export JOBS=-j$((1 + $(nproc --all)))
|
||||||
|
|
17
.github/workflows/windows.yml
vendored
17
.github/workflows/windows.yml
vendored
|
@ -31,10 +31,19 @@ jobs:
|
||||||
dependencies: openssl readline zlib
|
dependencies: openssl readline zlib
|
||||||
- name: Install libraries with chocolatey
|
- name: Install libraries with chocolatey
|
||||||
run: choco install winflexbison3
|
run: choco install winflexbison3
|
||||||
- name: Checkout
|
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
|
||||||
uses: actions/checkout@master
|
- name: Checkout ruby/ruby
|
||||||
with:
|
run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA"
|
||||||
fetch-depth: 50
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
- name: Checkout a pull request
|
||||||
|
run: git clone --depth=50 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV"
|
||||||
|
env:
|
||||||
|
GITHUB_REV: ${{ github.event.pull_request.head.sha }}
|
||||||
|
GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }}
|
||||||
|
GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
- name: configure
|
- name: configure
|
||||||
run: |
|
run: |
|
||||||
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"
|
||||||
|
|
Loading…
Reference in a new issue