summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-06-07 22:48:06 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-06-07 22:51:59 +0900
commitf602f9001ad6f4ce981678ac3e52a541e4e235af (patch)
tree83bc3e4717bad2b4c9ebb7aafdd13c7df9f3e16e
parentf2627aa60394b2d296dab1afdca6f648126ff1c3 (diff)
downloadpsych-f602f9001ad6f4ce981678ac3e52a541e4e235af.zip
Add a CI configuration with libyaml 0.1.7
-rw-r--r--.github/workflows/libyaml-0.1.7.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/libyaml-0.1.7.yml b/.github/workflows/libyaml-0.1.7.yml
new file mode 100644
index 0000000..d905619
--- /dev/null
+++ b/.github/workflows/libyaml-0.1.7.yml
@@ -0,0 +1,35 @@
+name: libyaml-0.1.7
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ruby: [ ruby-head, "3.0", 2.7, 2.6, 2.5, 2.4 ]
+ steps:
+ - name: Install libraries
+ run: sudo apt install haveged
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ - name: Set up libyaml 0.1.7
+ run: |
+ wget https://pyyaml.org/download/libyaml/yaml-0.1.7.tar.gz
+ tar xzf yaml-0.1.7.tar.gz
+ cd yaml-0.1.7
+ ./configure --prefix=/tmp/local
+ make
+ make install
+ - name: Install dependencies
+ run: bundle install
+ - name: Compile
+ run: rake compile -- --with-libyaml-dir=/tmp/local
+ - name: Run test
+ run: rake
+ - name: Install gem
+ run: rake install