Fixes #4851 - Add Leeds East (EGCM) RNP Fixes #3446
Workflow file for this run
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: Compile and Validate | |
on: | |
push: | |
branches: | |
- '*' | |
- '**' | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
name: "Compile Sectorfile" | |
runs-on: ubuntu-latest | |
env: | |
COMPILER_VERSION: 1.13.0 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Create Output Directory | |
run: mkdir .bin/ | |
- name: Download Compiler | |
run: | | |
curl -L --output compiler https://github.com/VATSIM-UK/sector-file-compiler/releases/download/$COMPILER_VERSION/cli-linux-x64 | |
chmod +x ./compiler | |
- name: Set Build Version | |
run: echo "SECTORFILE_BUILD_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Set Strip Comments | |
if: github.ref == 'refs/heads/main' || (github.event_name == 'release' && github.event.action == 'published') | |
run: echo "STRIP_COMMENTS=--strip-comments" >> $GITHUB_ENV | |
- name: Compile | |
run: | | |
./compiler --config-file compiler.config.json --strip-comments --no-wait --build-version $SECTORFILE_BUILD_VERSION $STRIP_COMMENTS | |
- name: Upload Build As Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: UK Sector File | |
path: ".bin/UK.*" |