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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fcb0c94 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}