aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/.github
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-10-23 19:49:43 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-11-27 19:51:25 -0500
commitc4f6c86999ec8fe3b610ac269a121c9fa424daf5 (patch)
tree9251611c030c29af99bfa59bda94521c3500ad94 /src/ext_depends/D-YAML/.github
parentnix .envrc related (diff)
dlang dub & nix build related, includes dep update
- nix-shell --pure - nix-build - dub build --compiler=ldc2 --build=release --force
Diffstat (limited to 'src/ext_depends/D-YAML/.github')
-rw-r--r--src/ext_depends/D-YAML/.github/workflows/d.yml73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/.github/workflows/d.yml b/src/ext_depends/D-YAML/.github/workflows/d.yml
new file mode 100644
index 0000000..08f583f
--- /dev/null
+++ b/src/ext_depends/D-YAML/.github/workflows/d.yml
@@ -0,0 +1,73 @@
+name: D
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ dc:
+ - dmd-latest
+ - ldc-latest
+ - dmd-beta
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
+ with:
+ compiler: ${{ matrix.dc }}
+ - name: 'Test'
+ run: |
+ dub test --build=unittest-cov
+ bash <(curl -s https://codecov.io/bash)
+ examples:
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
+ with:
+ compiler: dmd-latest
+ - name: 'Build Examples'
+ run: |
+ dub build dyaml:benchmark
+ dub build dyaml:constructor
+ dub build dyaml:getting-started
+ dub build dyaml:representer
+ dub build dyaml:resolver
+ dub build dyaml:testsuite
+ dub build dyaml:tojson
+ dub build dyaml:yaml_gen
+ dub build dyaml:yaml_stats
+ ninja:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
+ with:
+ compiler: dmd-latest
+ - name: 'Install dependencies'
+ run: |
+ sudo apt-get install python3-pip python3-setuptools python3-wheel ninja-build
+ sudo pip3 install meson
+ - name: 'Build'
+ run: |
+ export PATH=$PATH:$PWD/.ntmp
+ meson build && ninja -j8 -C build
+ ninja -j8 -C build test -v
+ yaml-test-suite:
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
+ with:
+ compiler: dmd-latest
+ - name: 'Run YAML test suite'
+ run: |
+ git clone https://github.com/yaml/yaml-test-suite
+ dub run dyaml:testsuite