From 1b3c57bed03bfd1d2d5251c3a0fed4cb31d0b4a2 Mon Sep 17 00:00:00 2001 From: Luighi Date: Tue, 13 Jul 2021 16:18:42 -0500 Subject: [PATCH 1/3] Add github action closes (refs #32) --- .github/workflows/compile.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..22ba9d7 --- /dev/null +++ b/.github/workflows/compile.yml @@ -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 From bef0998bddaaf3270268ea72bf37d12496e9b1b7 Mon Sep 17 00:00:00 2001 From: Luighi Date: Tue, 13 Jul 2021 17:55:02 -0500 Subject: [PATCH 2/3] Automate releases (refs #32) --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..026b84b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ncipollo/release-action@v1 + with: + artifacts: "gui" + body: "LoRa Simulator release" + token: ${{ secrets.GITHUB_TOKEN }} From 5ff92f9b96002763b602c3aab32384b3d5f437fe Mon Sep 17 00:00:00 2001 From: Luighi Date: Tue, 13 Jul 2021 18:13:29 -0500 Subject: [PATCH 3/3] Add artifact to the release (refs #32) --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 026b84b..fcb0c94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,11 +8,40 @@ on: 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: - - uses: actions/checkout@v2 + - name: Download result from build + uses: actions/download-artifact@v2 + with: + name: gui + - uses: ncipollo/release-action@v1 with: - artifacts: "gui" + artifacts: "gui,gui.exe" body: "LoRa Simulator release" token: ${{ secrets.GITHUB_TOKEN }}