-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (35 loc) · 1.11 KB
/
ubuntu.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
36
37
38
39
40
41
42
name: Ubuntu
on: [push, pull_request]
jobs:
Linux:
runs-on: ubuntu-latest
env:
targetName: ScopeGUI
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev
- uses: actions/checkout@v3
with:
submodules: recursive
- name: CMake Build
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make ${{ env.targetName }} -j2
zip -r ${{ env.targetName }}.zip ${{ env.targetName }}
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
name: ${{ env.targetName }}_${{ runner.os }}_${{ github.sha }}
path: build
- name: Make Release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ env.targetName }}.zip
asset_name: ${{ env.targetName }}_${{ runner.os }}.zip
tag: ${{ github.ref }}
overwrite: true