Unverified Commit c5fd8cbb authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5031 from RoryO/update-ci

Update Windows CI settings
parents 01a8d849 8a449039
...@@ -5,51 +5,59 @@ on: [push, pull_request] ...@@ -5,51 +5,59 @@ on: [push, pull_request]
jobs: jobs:
Ubuntu-1604: Ubuntu-1604:
runs-on: ubuntu-16.04 runs-on: ubuntu-16.04
env:
MRUBY_CONFIG: travis_config.rb
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: apt - name: apt
run: sudo apt install ruby gperf run: sudo apt install ruby gperf
- name: build and test - name: build
run: rake -m -j4 all test run: rake -m
env: - name: test
MRUBY_CONFIG: travis_config.rb run: rake test
Ubuntu-1804-gcc: Ubuntu-1804-gcc:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt install ruby gperf gcc g++
- name: build and test
run: rake -m -j4 all test
env: env:
MRUBY_CONFIG: travis_config.rb MRUBY_CONFIG: travis_config.rb
CC: gcc CC: gcc
CXX: g++ CXX: g++
Ubuntu-1804-clang:
runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: apt - name: apt
run: sudo apt install ruby gperf run: sudo apt install ruby gperf gcc g++
- name: build and test - name: build
run: rake -m -j4 all test run: rake -m
- name: test
run: rake test
Ubuntu-1804-clang:
runs-on: ubuntu-18.04
env: env:
MRUBY_CONFIG: travis_config.rb MRUBY_CONFIG: travis_config.rb
CC: clang CC: clang
CXX: clang++ CXX: clang++
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt install ruby gperf
- name: build
run: rake -m
- name: test
run: rake test
macOS: macOS:
runs-on: macos-latest runs-on: macos-latest
env:
MRUBY_CONFIG: travis_config.rb
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: brew - name: brew
run: brew install ruby gperf run: brew install ruby gperf
- name: build and test - name: build
run: rake -m -j4 all test run: rake -m
env: - name: test
MRUBY_CONFIG: travis_config.rb run: rake test
Windows-MinGW: Windows-MinGW:
runs-on: windows-latest runs-on: windows-latest
...@@ -57,8 +65,8 @@ jobs: ...@@ -57,8 +65,8 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: chocolatey - name: chocolatey
run: choco install -y ruby gperf run: choco install -y ruby gperf
- name: build and test - name: build
run: rake -E '$stdout.sync=true' -j4 test run: rake -E 'STDOUT.sync=true' test
env: env:
MRUBY_CONFIG: travis_config.rb MRUBY_CONFIG: travis_config.rb
CFLAGS: -g -O1 -Wall -Wundef CFLAGS: -g -O1 -Wall -Wundef
...@@ -82,22 +90,13 @@ jobs: ...@@ -82,22 +90,13 @@ jobs:
- name: Set ENV - name: Set ENV
run: | run: |
echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin' echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
- name: build and test - name: build
shell: cmd shell: cmd
run: C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -m -j4 -E 'STDOUT.sync=true' test run: C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -E 'STDOUT.sync=true' -m
env: env:
MRUBY_CONFIG: travis_config.rb MRUBY_CONFIG: travis_config.rb
- name: test
Windows-VC:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: chocolatey
run: choco install -y ruby gperf
- name: build and test
shell: cmd shell: cmd
run: | run: C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -E 'STDOUT.sync=true' test
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
rake -E "STDOUT.sync=true" -m -j4 test
env: env:
MRUBY_CONFIG: appveyor_config.rb MRUBY_CONFIG: travis_config.rb
...@@ -30,11 +30,6 @@ environment: ...@@ -30,11 +30,6 @@ environment:
appveyor_build_worker_image: Visual Studio 2015 appveyor_build_worker_image: Visual Studio 2015
machine: x86 machine: x86
- job_name: Visual Studio 2013 64bit
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
appveyor_build_worker_image: Visual Studio 2015
machine: x86_amd64
init: init:
- call "%visualcpp%" %machine% - call "%visualcpp%" %machine%
# For using Rubyins4aller's Ruby 2.6 64bit # For using Rubyins4aller's Ruby 2.6 64bit
...@@ -45,4 +40,5 @@ init: ...@@ -45,4 +40,5 @@ init:
build_script: build_script:
- set MRUBY_CONFIG=appveyor_config.rb - set MRUBY_CONFIG=appveyor_config.rb
- rake -E "$stdout.sync=true" -m -j4 test - rake -E "$stdout.sync=true" -m -j4
- rake test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment