summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml42
1 files changed, 20 insertions, 22 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 135e39ca7..435118e37 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,18 +3,8 @@ name: Build & Test
on: [push, pull_request]
jobs:
- Check-Skip:
- if: |
- !contains(github.event.head_commit.message, '[ci skip]') &&
- !contains(github.event.head_commit.message, '[skip ci]') &&
- !contains(github.event.head_commit.message, '[skip gha]')
- runs-on: ubuntu-latest
- steps:
- - run: echo not skip
-
- Ubuntu-1604:
- needs: Check-Skip
- runs-on: ubuntu-16.04
+ Ubuntu-1804-gcc:
+ runs-on: ubuntu-18.04
env:
MRUBY_CONFIG: ci/gcc-clang
CC: gcc
@@ -27,11 +17,24 @@ jobs:
- name: Build and test
run: rake -m test:build && rake test:run
- Ubuntu-1804-gcc:
- needs: Check-Skip
+ Ubuntu-1804-clang:
runs-on: ubuntu-18.04
env:
MRUBY_CONFIG: ci/gcc-clang
+ CC: clang
+ steps:
+ - uses: actions/checkout@v2
+ - name: Ruby version
+ run: ruby -v
+ - name: Compiler version
+ run: ${{ env.CC }} --version
+ - name: Build and test
+ run: rake -m test:build && rake test:run
+
+ Ubuntu-2004-gcc:
+ runs-on: ubuntu-20.04
+ env:
+ MRUBY_CONFIG: ci/gcc-clang
CC: gcc
steps:
- uses: actions/checkout@v2
@@ -42,9 +45,8 @@ jobs:
- name: Build and test
run: rake -m test:build && rake test:run
- Ubuntu-1804-clang:
- needs: Check-Skip
- runs-on: ubuntu-18.04
+ Ubuntu-2004-clang:
+ runs-on: ubuntu-20.04
env:
MRUBY_CONFIG: ci/gcc-clang
CC: clang
@@ -58,7 +60,6 @@ jobs:
run: rake -m test:build && rake test:run
macOS:
- needs: Check-Skip
runs-on: macos-latest
env:
MRUBY_CONFIG: ci/gcc-clang
@@ -73,7 +74,6 @@ jobs:
run: rake -m test:build && rake test:run
Windows-MinGW:
- needs: Check-Skip
runs-on: windows-latest
env:
MRUBY_CONFIG: ci/gcc-clang
@@ -88,7 +88,6 @@ jobs:
run: rake -m test:build && rake test:run
Windows-Cygwin:
- needs: Check-Skip
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
@@ -100,7 +99,7 @@ jobs:
cache-version: v1
steps:
- uses: actions/checkout@v2
- - uses: actions/cache@v2
+ - uses: actions/[email protected]
with:
path: ${{ env.package-dir }}
key: ${{ runner.os }}-cygwin-${{ env.cache-version }}
@@ -134,7 +133,6 @@ jobs:
run: echo '::set-env name=PATH::C:\windows\System32'
Windows-VC:
- needs: Check-Skip
runs-on: windows-latest
env:
MRUBY_CONFIG: ci/msvc