forked from LayerTwo-Labs/drivechain_launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bae8e87
commit 6aaebb5
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build Drivechain Launcher Project | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
include: | ||
- os: ubuntu-latest | ||
godot_version: "3.4.2" | ||
platform: "X11" | ||
- os: macos-latest | ||
godot_version: "3.4.2" | ||
platform: "Mac OS X" | ||
- os: windows-latest | ||
godot_version: "3.4.2" | ||
platform: "Windows Desktop" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Godot | ||
run: | | ||
wget https://downloads.tuxfamily.org/godotengine/${{ matrix.godot_version }}/Godot_v${{ matrix.godot_version }}-stable_${{ matrix.platform }}.zip | ||
unzip Godot_v${{ matrix.godot_version }}-stable_${{ matrix.platform }}.zip | ||
- name: Export Project | ||
run: | | ||
chmod +x ./Godot_v${{ matrix.godot_version }}-stable_${{ matrix.platform }}.64 # Only needed for Linux and macOS | ||
./Godot_v${{ matrix.godot_version }}-stable_${{ matrix.platform }}.64 --export "${{ matrix.platform }}" drivechain_launcher.${{ matrix.platform == 'X11' && 'x86_64' || matrix.platform == 'Mac OS X' && 'dmg' || matrix.platform == 'Windows Desktop' && 'exe' }} | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: drivechain_launcher-${{ matrix.platform }} | ||
path: drivechain_launcher.${{ matrix.platform == 'X11' && 'x86_64' || matrix.platform == 'Mac OS X' && 'dmg' || matrix.platform == 'Windows Desktop' && 'exe' }} | ||
|