-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (28 loc) · 854 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build
on: [push, pull_request]
jobs:
binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install libsdl2-dev
- name: Compile
run: make
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [binary]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build package
run: zip yeti-${{ github.ref_name }}.zip yeti
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: yeti-${{ github.ref_name }}.zip