ubuntu.yml updated for download-artifact v4 #1621
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |