Skip to content

Commit 8719398

Browse files
author
Boris Resnick
authored
Merge pull request #36 from LuighiV/master
Adding scripts to create executables with github-actions
2 parents fe8755e + 5ff92f9 commit 8719398

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

.github/workflows/compile.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Compile binary'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
name: 'Deployment with ssh'
9+
runs-on: windows-2019
10+
11+
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
12+
defaults:
13+
run:
14+
shell: bash
15+
working-directory: .
16+
17+
steps:
18+
# Checkout the repository to the GitHub Actions runner
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Compile go
23+
env:
24+
GOROOT_1_14_X64: 1
25+
GOEXE: .exe
26+
run: make
27+
28+
- name: Save compiled file
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: gui
32+
path: gui.exe

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Releases
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
10+
build:
11+
runs-on: windows-2019
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
working-directory: .
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Compile go
23+
env:
24+
GOROOT_1_14_X64: 1
25+
GOEXE: .exe
26+
run: make
27+
28+
- name: Save compiled file
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: gui
32+
path: gui.exe
33+
34+
release:
35+
runs-on: ubuntu-latest
36+
needs: build
37+
steps:
38+
- name: Download result from build
39+
uses: actions/download-artifact@v2
40+
with:
41+
name: gui
42+
43+
- uses: ncipollo/release-action@v1
44+
with:
45+
artifacts: "gui,gui.exe"
46+
body: "LoRa Simulator release"
47+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)