-
Notifications
You must be signed in to change notification settings - Fork 9
106 lines (92 loc) · 3 KB
/
main.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This is a basic workflow to help you get started with Actions
name: "CI"
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
#types: [opened, synchronize, closed]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_windows:
name: Build (Windows)
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: "> Check out current repository"
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
token: ${{ github.token }}
path: ${{ github.workspace }}
- name: "> Install Graphviz"
uses: ts-graphviz/setup-graphviz@v1
- name: "> Build graph"
shell: cmd
env:
target_file_path: ${{github.workspace}}${{'\scripts'}}
run: |
ECHO Workflow step executed from > %CD%
DIR
ICACLS.EXE * /reset /t /c /q
CD /D .\scripts\
ECHO ----------------------------------------
CALL "%target_file_path%\compile.bat"
build_ubuntu:
name: Build (Ubuntu)
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: "> Check out current repository"
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
token: ${{ github.token }}
path: ${{ github.workspace }}
- name: "> Install Graphviz"
uses: ts-graphviz/setup-graphviz@v1
- name: "> Build graph"
shell: bash
env:
target_file_path: ${{github.workspace}}${{'\scripts'}}
run: |
echo "Workflow step executed from > $(pwd)";
ls;
find $(pwd) -type f -iname "*.sh" -exec chmod +x {} \;
cd "./scripts/";
echo "----------------------------------------";
bash -e "./compile.sh";
# ci_job_cancel_test_win:
# name: CI job cancel test (OS Windows)
# runs-on: windows-latest
# steps:
# - name: Job cancel
# shell: cmd
# run: |
# ECHO Hello world!
# ECHO ----------------------------------------
# EXIT 0
# ci_job_cancel_test_lin:
# name: CI job cancel test (OS *nux)
# runs-on: ubuntu-latest
# steps:
# - name: Job cancel
# shell: bash
# run: |
# echo "Hello world!"
# echo "----------------------------------------"
# exit 0
# ci_job_cancel_test_mac:
# name: CI job cancel test (macOS)
# runs-on: macos-latest
# steps:
# - name: Job cancel
# shell: sh
# run: |
# echo "Hello world!"
# echo "----------------------------------------"
# exit 0