blob: c67c5edd878aab54ef5e6f378a530501adc63245 (
plain) (
blame)
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
|
name: Release t Binaries
on:
push:
release:
types: published
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Build
shell: bash
run: |
sudo apt-get update && sudo apt-get install clang-6.0
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel --config Release --target t
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: t-binary
path: build/t
- name: Upload release asset
if: github.event.action == 'published'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|