-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.07 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
name: Upload builds to release
on:
workflow_dispatch:
release:
types: [released]
jobs:
build-appimage:
name: Build and upload amd64 AppImages
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: iffy/install-nim@v4.1.1
- name: Install x11 dev libraries
run: sudo apt install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl-dev
- name: Build AppImage
run: |
nimble buildapp
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["*-*-*.AppImage", "*-*-*.AppImage.zsync"]'
build-win:
name: Build and upload amd64 exe
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: iffy/install-nim@v4.1.1
- name: Build exe
run: nimble buildr
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["*.exe"]'