RMW_IMPLEMENTATION is not needed any more #11
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: Firmware release | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
build: | |
name: Build (${{ matrix.os }}-${{ matrix.arch }}) | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [linux, windows, darwin] | |
arch: [arm64, amd64] | |
include: | |
- os: linux | |
extension: "" | |
- os: windows | |
extension: ".exe" | |
- os: darwin | |
extension: "" | |
steps: | |
- name: Print GitHub context | |
run: echo '${{ toJSON(github) }}' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Building ${{ matrix.os }} ${{ matrix.arch }} | |
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-X main.version=${{ github.ref_name}}" -o husarnet-dds-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.extension }} | |
- name: list files | |
run: ls -la . | |
- name: Save build results | |
uses: actions/upload-artifact@v2 | |
with: | |
path: husarnet-dds-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.extension }} | |
release: | |
name: Release | |
needs: build | |
if: success() | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/download-artifact@v2 | |
- name: list files | |
run: tree | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: | | |
artifact/* | |
tag_name: ${{ github.ref_name}} |