-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.18 KB
/
release.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
43
44
45
46
name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v3
-
name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake libglew-dev libglfw3-dev
-
name: Build artifacts
run: |
mkdir build-release
cmake -D CMAKE_BUILD_TYPE=Release -B build-release
cmake --build build-release -- -j $(($(nproc) * 3 / 4))
-
name: Create release
id: create_release
uses: actions/create-release@v1
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
-
name: Upload artifacts
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build-release/Mandelbrot
asset_name: Mandelbrot
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ github.token }}