gtkradiant/.github/workflows/main.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2021-04-25 16:05:58 +00:00
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
2021-04-25 16:14:23 +00:00
branches: [ main ]
2021-04-25 16:05:58 +00:00
pull_request:
2021-04-25 16:14:23 +00:00
branches: [ main ]
2021-04-25 16:05:58 +00:00
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
windows-build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
2021-04-25 16:19:20 +00:00
- name: Install scons
run: pip install scons
2021-04-25 20:36:28 +00:00
- name: Install svn
2021-05-16 21:41:52 +00:00
run: choco install svn zip
2021-04-25 20:36:28 +00:00
2021-04-25 16:19:20 +00:00
- name: Setup GtkRadiant
2021-04-25 16:49:32 +00:00
run: scons target=setup
2021-04-25 21:12:01 +00:00
2021-04-25 21:23:45 +00:00
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
2021-04-25 21:12:01 +00:00
- name: Build GtkRadiant
2021-05-16 22:14:31 +00:00
run: msbuild radiant.sln /p:Configuration=Release /p:Platform=Win32
2021-04-25 21:12:01 +00:00
- name: Build q3map2 x64
run: msbuild /p:Configuration=Release /p:Platform=x64 /target:q3map2
- name: Create archive
run: zip -r GtkRadiant.zip install
- uses: actions/upload-artifact@v2
with:
path: GtkRadiant.zip