-
Notifications
You must be signed in to change notification settings - Fork 3
92 lines (78 loc) · 2.44 KB
/
Copy pathtest.yml
File metadata and controls
92 lines (78 loc) · 2.44 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
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
name: Test
on: push
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout EXDSchema
uses: actions/checkout@v4
with:
repository: xivdev/EXDSchema
ref: latest
submodules: recursive
path: EXDSchema
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0"
- name: Build
run: dotnet build -c Release
- name: Retrieve cache
uses: actions/cache@v4
with:
path: data
key: exd-${{hashFiles('data/.cachemeta.json')}}
restore-keys: |
exd-
- name: Download Game Data
uses: WorkingRobot/ffxiv-downloader@v7
with:
output-path: data
regex: '^sqpack\/ffxiv\/0a0000\..+$'
- name: Export Columns
id: export-columns
if: always()
run: dotnet run -c Release --no-build -- export-columns -g data/sqpack -o columns.yml
- name: Export Hashes
id: export-hashes
if: always()
run: dotnet run -c Release --no-build -- export-hashes -g data/sqpack -o hashes.yml
- name: Export Paths
id: export-paths
if: always()
run: dotnet run -c Release --no-build -- export-paths -g data/sqpack -s EXDSchema -o paths
- name: Validate Schema
id: validate-schema
if: always()
run: dotnet run -c Release --no-build -- validate -g data/sqpack -s EXDSchema
- name: Upload Columns
uses: actions/upload-artifact@v4
if: ${{ steps.export-columns.conclusion == 'success' }}
continue-on-error: true
with:
name: columns
path: columns.yml
if-no-files-found: error
- name: Upload Hashes
uses: actions/upload-artifact@v4
if: ${{ steps.export-hashes.conclusion == 'success' }}
continue-on-error: true
with:
name: hashes
path: hashes.yml
if-no-files-found: error
- name: Upload Paths
uses: actions/upload-artifact@v4
if: ${{ steps.export-paths.conclusion == 'success' }}
continue-on-error: true
with:
name: paths
path: paths
if-no-files-found: error