-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
59 lines (53 loc) · 1.94 KB
/
Copy pathtoml_ci.yml
File metadata and controls
59 lines (53 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: toml CI
on:
push:
branches:
- master
paths:
- 'vlib/**'
- '.github/actions/setup-v/**'
- '**/toml_ci.yml'
- '!**.md'
pull_request:
paths:
- 'vlib/**'
- '.github/actions/setup-v/**'
- '**/toml_ci.yml'
- '!**.md'
concurrency:
group: toml-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
cancel-in-progress: true
jobs:
toml-module-pass-external-test-suites:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- name: Cache V toolchain
id: cache-v
uses: actions/cache@v6
with:
path: |
v
thirdparty/tcc
key: v-toml-${{ runner.os }}-${{ hashFiles('cmd/v/**', '!cmd/v/**/*_test*.v', 'cmd/tools/select_linux_tcc.sh', 'cmd/tools/git_argv.sh', 'cmd/tools/detect_tcc.v', 'vlib/**', '!vlib/toml/**', '!vlib/**/*_test*.v', '!vlib/**/tests/**', '!vlib/**/testdata/**', '!vlib/v/slow_tests/**', 'thirdparty/**', 'GNUmakefile', 'Makefile', '.github/actions/setup-v/**', '.github/workflows/toml_ci.yml') }}
- uses: ./.github/actions/setup-v
if: steps.cache-v.outputs.cache-hit != 'true'
with:
symlink: false
- name: Register problem matchers
if: steps.cache-v.outputs.cache-hit == 'true'
run: ./v run .github/problem-matchers/register_all.vsh
- name: Symlink V
run: ./v symlink
- name: Install dependencies
run: |
v retry -- v download https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64
sudo chmod 755 jq-linux64
sudo mv jq-linux64 /usr/bin/jq
- name: Show JQ Version
run: jq --version
- name: Download more TOML testsuits
run: .github/workflows/download_full_toml_test_suites.sh
- name: Run TOML tests
run: VTEST_TOML_DO_YAML_CONVERSION=1 VTEST_TOML_DO_LARGE_FILES=1 ./v test vlib/toml