Skip to content

Commit

Permalink
Merge pull request #36 from LuighiV/master
Browse files Browse the repository at this point in the history
Adding scripts to create executables with github-actions
  • Loading branch information
Boris Resnick authored Aug 4, 2021
2 parents fe8755e + 5ff92f9 commit 8719398
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Compile binary'

on:
workflow_dispatch:

jobs:
build:
name: 'Deployment with ssh'
runs-on: windows-2019

# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
working-directory: .

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2

- name: Compile go
env:
GOROOT_1_14_X64: 1
GOEXE: .exe
run: make

- name: Save compiled file
uses: actions/upload-artifact@v2
with:
name: gui
path: gui.exe
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Releases

on:
push:
tags:
- '*'

jobs:

build:
runs-on: windows-2019

defaults:
run:
shell: bash
working-directory: .

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Compile go
env:
GOROOT_1_14_X64: 1
GOEXE: .exe
run: make

- name: Save compiled file
uses: actions/upload-artifact@v2
with:
name: gui
path: gui.exe

release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download result from build
uses: actions/download-artifact@v2
with:
name: gui

- uses: ncipollo/release-action@v1
with:
artifacts: "gui,gui.exe"
body: "LoRa Simulator release"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8719398

Please sign in to comment.