mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
This is just the first step to prove the concept. Most of the work done in our workflows can be split into separate jobs to parallelize the workflow. This will also make the checks page more readable. This change alone probably won't speed up CI much.
38 lines
890 B
YAML
38 lines
890 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
uses: ./.github/workflows/lint.yml
|
|
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Python environment
|
|
uses: ./.github/actions/setup-liberation-python
|
|
|
|
- name: Set up JS environment
|
|
uses: ./.github/actions/setup-liberation-js
|
|
|
|
- name: Set build number
|
|
run: |
|
|
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
|
|
|
|
- name: Build app
|
|
uses: ./.github/actions/build-app
|
|
|
|
- name: Create archive
|
|
run:
|
|
Compress-Archive -Path .\dist\dcs_liberation\ -DestinationPath
|
|
dist\dcs_liberation.zip
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: dcs_liberation
|
|
path: dist/dcs_liberation.zip
|