Skip to content
Permalink
Browse files

Add GitHub Actions support (#1157)

* Add GitHub Actions support

* actions: upload build artifacts

* ci: cache dxfiles

* Add workflow name

* Shorten job names

* Delete azure pipelines
  • Loading branch information
qaisjp committed Jan 21, 2020
1 parent c702fe4 commit e95e75cd9df29b78e320a9d1021bfdaa90e4edb8
Showing with 71 additions and 45 deletions.
  1. +71 −0 .github/workflows/build.yaml
  2. +0 −45 azure-pipelines.yml
@@ -0,0 +1,71 @@
name: Build

# Trigger on push
on: push

jobs:
windows:
name: windows
runs-on: windows-2016
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 10

- uses: actions/cache@v1
id: cache-dxfiles
with:
path: utils/DXFiles
key: dxfiles-0001

- name: Download DirectX
if: steps.cache-dxfiles.outputs.cache-hit != 'true'
run: Invoke-WebRequest https://mirror.mtasa.com/bdata/DXFiles.zip -OutFile utils/DXFiles.zip
shell: powershell

- name: Extract DirectX
if: steps.cache-dxfiles.outputs.cache-hit != 'true'
run: Expand-Archive -Path utils/DXFiles.zip -DestinationPath utils/DXFiles
shell: powershell

- name: Install CEF
run: utils\premake5 install_cef

- name: Run Build
run: win-build.bat
shell: cmd
env:
DXSDK_DIR: './utils/DXFiles/'
CI: 'true'

- name: Create build artifacts
run: utils\premake5 compose_files

- uses: actions/upload-artifact@master
with:
name: InstallFiles
path: InstallFiles/

macOS:
name: macOS
runs-on: macOS-latest
steps:
- name: Install MySQL
run: brew install mysql
- uses: actions/checkout@v1
with:
fetch-depth: 10
- name: Run Build
run: ./linux-build.sh

linux:
name: linux
runs-on: ubuntu-16.04
container:
image: docker://sbx320/mtasa-blue-azure:latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 10
- name: Run Build
run: ./linux-build.sh

This file was deleted.

1 comment on commit e95e75c

@qaisjp

This comment has been minimized.

Copy link
Member Author

qaisjp commented on e95e75c Jan 21, 2020

Working on a macOS fix...

Please sign in to comment.
You can’t perform that action at this time.