Bump version #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build nmqtt release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOs-latest | |
version: | |
- stable | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jiro4989/setup-nim-action@master | |
with: | |
nim-version: ${{ matrix.version }} | |
- name: Print Nim version | |
run: nim -v | |
- name: Print Nimble version | |
run: nimble -v | |
- name: Nimble Refresh | |
run: nimble -y refresh | |
- name: Nimble Install dependencies | |
run: nimble -y install --depsOnly | |
- name: Build binaries | |
run: nimble build -d:release | |
- name: Archive Release | |
uses: papeloto/action-zip@v1 | |
with: | |
files: bin/ config/nmqtt.conf nmqtt.nim | |
dest: release-${{ matrix.os }}.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: release-${{ matrix.os }}.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |