mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-24 21:01:34 +00:00
Add CI build using GitHub Actions
This commit is contained in:
parent
595b89dbe5
commit
bf1a70b2e5
1 changed files with 49 additions and 0 deletions
49
.github/workflows/build.yml
vendored
Normal file
49
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
name: Build
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
name: Linux
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libsdl2-dev
|
||||
- name: Compile
|
||||
run: make release -C engine
|
||||
env:
|
||||
ARCHIVE: 1
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Linux
|
||||
path: build/*.zip
|
||||
windows:
|
||||
name: Windows
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Compile
|
||||
run: |
|
||||
choco install zip
|
||||
make release -C engine
|
||||
env:
|
||||
ARCHIVE: 1
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Windows
|
||||
path: build/*.zip
|
||||
macos:
|
||||
name: macOS
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Compile
|
||||
run: make release -C engine
|
||||
env:
|
||||
ARCHIVE: 1
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: macOS
|
||||
path: build/*.zip
|
Loading…
Reference in a new issue