diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/check_branch.yml | 2 | ||||
-rw-r--r-- | .github/workflows/macos.yml | 16 | ||||
-rw-r--r-- | .github/workflows/mjit.yml | 18 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 18 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 15 |
5 files changed, 18 insertions, 51 deletions
diff --git a/.github/workflows/check_branch.yml b/.github/workflows/check_branch.yml index 40292838f2..5bc20a5541 100644 --- a/.github/workflows/check_branch.yml +++ b/.github/workflows/check_branch.yml @@ -10,7 +10,7 @@ name: Pull Request on: [pull_request] jobs: check_branch: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check if branch is ruby_2_7 run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 6cdbdc272b..357be970a4 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -19,17 +19,9 @@ jobs: run: | sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate - # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby - run: | - git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src - git -C src reset --hard "$GITHUB_SHA" - if: github.event_name == 'push' - - name: Checkout a pull request - run: | - git clone --single-branch --shallow-since=yesterday --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src - git -C src reset --hard ${{ github.event.pull_request.head.sha }} - if: github.event_name == 'pull_request' + - uses: actions/checkout@v2 + with: + path: src - run: ./src/tool/actions-commit-info.sh id: commit_info - name: Install libraries @@ -44,7 +36,7 @@ jobs: - name: Autoconf run: | cd src - autoconf + autoreconf -i - name: Configure run: | mkdir build diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 5b662caa14..5dc02ccb75 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -13,7 +13,7 @@ jobs: test_task: [ "check" ] # to make job names consistent jit_opts: [ "--jit", "--jit-wait" ] fail-fast: false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: "!contains(github.event.head_commit.message, '[ci skip]')" steps: - name: Install libraries @@ -21,17 +21,9 @@ jobs: set -x sudo apt-get update -q || : sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby - # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby - run: | - git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src - git -C src reset --hard "$GITHUB_SHA" - if: github.event_name == 'push' - - name: Checkout a pull request - run: | - git clone --single-branch --shallow-since=yesterday --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src - git -C src reset --hard ${{ github.event.pull_request.head.sha }} - if: github.event_name == 'pull_request' + - uses: actions/checkout@v2 + with: + path: src - run: ./src/tool/actions-commit-info.sh id: commit_info - name: Fixed world writable dirs @@ -42,7 +34,7 @@ jobs: run: | echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV - name: Autoconf - run: cd src && exec autoconf + run: cd src && exec autoreconf -i - name: configure run: | mkdir build diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 68f28d7b40..526fc47ce3 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: test_task: [ "check", "test-bundler", "test-bundled-gems" ] - os: [ubuntu-latest, ubuntu-16.04] + os: [ubuntu-20.04] exclude: - test_task: test-bundler os: ubuntu-16.04 @@ -52,17 +52,9 @@ jobs: set -x sudo apt-get update -q || : sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby - # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby - run: | - git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src - git -C src reset --hard "$GITHUB_SHA" - if: github.event_name == 'push' - - name: Checkout a pull request - run: | - git clone --single-branch --shallow-since=yesterday --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src - git -C src reset --hard ${{ github.event.pull_request.head.sha }} - if: github.event_name == 'pull_request' + - uses: actions/checkout@v2 + with: + path: src - run: ./src/tool/actions-commit-info.sh id: commit_info - name: Fixed world writable dirs @@ -73,7 +65,7 @@ jobs: run: | echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV - name: Autoconf - run: cd src && exec autoconf + run: cd src && exec autoreconf -i - name: configure run: | mkdir build diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 82cca9353b..265a8a6157 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -37,18 +37,9 @@ jobs: - name: Install libraries with chocolatey run: | choco install --no-progress openssl winflexbison3 - # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby - run: | - git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src - git -C src reset --hard ${{ github.sha }} - if: github.event_name == 'push' - shell: bash - - name: Checkout a pull request - run: | - git clone --single-branch --shallow-since=yesterday --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src - git -C src reset --hard ${{ github.event.pull_request.head.sha }} - if: github.event_name == 'pull_request' + - uses: actions/checkout@v2 + with: + path: src - run: ./src/tool/actions-commit-info.sh shell: bash id: commit_info |