-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1 KB
/
compile-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
name: C/C++ CI
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Packages
run: sudo apt-get update && sudo apt-get install -y mingw-w64 zip cmake
- name: Initializing submodules
run: git submodule update --init
- name: Build linux release
run: cmake -B . && make
- name: Build windows release
run: cmake -DCMAKE_TOOLCHAIN_FILE="tc-win64.cmake" -B . && make
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Generate release
run: |
cd release
zip ziso_${{ env.RELEASE_VERSION }}_linux.zip bin/ziso
zip ziso_${{ env.RELEASE_VERSION }}_win64.zip bin/ziso.exe
- name: Upload assets
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
release/*.zip