-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (69 loc) · 2.28 KB
/
ci.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Test and Release
on:
push:
branches:
- master
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup V
uses: prantlf/setup-v-action@v2
- name: Test
run: make
macos:
runs-on: macos-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup V
uses: prantlf/setup-v-action@v2
- name: Test
run: make
# windows:
# runs-on: windows-latest
# steps:
# - name: Checkout Sources
# uses: actions/checkout@v4
# - name: Setup V
# uses: prantlf/setup-v-action@v2
# with:
# install-dependencies: false
# - name: Install Dependencies
# run: |
# md src\modules
# md src\modules\prantlf
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-debug src\modules\prantlf\debug
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-ini src\modules\prantlf\ini
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-jany src\modules\prantlf\jany
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-json src\modules\prantlf\json
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-path src\modules\prantlf\path
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-strutil src\modules\prantlf\strutil
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-osutil src\modules\prantlf\osutil
# git clone --depth=1 --recursive --shallow-submodules https://github.com/prantlf/v-yaml src\modules\prantlf\yaml
# - name: Test
# run: cmd /c make.bat
release:
if: ${{ github.ref_name == 'master' }}
needs:
- linux
- macos
# - windows
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Publish release
uses: prantlf/publish-release-action@v1
with:
no-archives: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}