-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (59 loc) · 1.93 KB
/
windows.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
name: windows
on:
push:
branches:
- master
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- run: choco install --no-progress grep gnuwin32-coreutils.install make curl unzip xsltproc
- uses: actions/checkout@v2
- run: make update-init update-modules
shell: pwsh
- name: Fix soft links
shell: pwsh
run: |
git ls-files -s xslt_src | grep "^12" | cut -f2 | % {
$linkPath = Resolve-Path -Path $_
If ((Get-Item $linkPath).length -gt 0kb) {
Write-Host "Restore symlink: $linkPath"
$targetFileName = Join-Path -Path $(Split-Path -Path $linkPath -Parent) -ChildPath $(Get-Content $linkPath -Raw)
Copy-Item $targetFileName -Destination $linkPath
}
}
- uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- uses: actions/cache@v2
with:
path: ~/.fontist
key: fontist-windows
restore-keys: fontist-windows
- name: Install Fontist fonts
run: |
gem install rake --force
gem install fontist
fontist update
fontist manifest-install --confirm-license fonts/manifest.yml
fontist manifest-locations fonts/manifest.yml > fonts/manifest.paths.yml
cat fonts/manifest.paths.yml
- run: |
& $env:MAKE all published
shell: pwsh
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
MAKE: C:\ProgramData\chocolatey\bin\make.exe
- uses: actions/upload-artifact@master
with:
name: published-windows
path: published