Skip to content

Testing the build procedures on Linux #382

Testing the build procedures on Linux

Testing the build procedures on Linux #382

name: Build on Linux
run-name: Testing the build procedures on Linux
on:
workflow_dispatch:
workflow_run:
workflows: ["Auto Update and Release"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
- name: Check for new release
shell: pwsh
run: |
if ($(. "./Utils/check_if_updated_within_24H.ps1" ${{ secrets.GIT_USER_NAME }} JetBrainsMonoNerdFonts ${{secrets.PAT}})){
Write-Host "The latest release is less than 24 hours old."
Write-Host "Additional building tests will be cunducted."
"should_ship_build_tests=false" | Out-File -FilePath $env:GITHUB_ENV -Append
} else {
Write-Host "The latest release is more than 24 hours old, or no release found."
Write-Host "Additional building tests will be skipped."
"should_ship_build_tests=true" | Out-File -FilePath $env:GITHUB_ENV -Append
}
- if: ${{ env.should_ship_build_tests == 'false' }}
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies
- name: Build
if: ${{ env.should_ship_build_tests == 'false' }}
shell: pwsh
run: |
sudo apt install fontforge
pip install -r "./requirements.txt" -q
. "./build.ps1" ${{secrets.PAT}}