Skip to content

remove dependency status #16

remove dependency status

remove dependency status #16

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Test with Coverage
run: go test -coverprofile=coverage.out ./...
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: linux
goos: linux
goarch: amd64
extension: ""
- os: macos
goos: darwin
goarch: amd64
extension: ""
- os: windows
goos: windows
goarch: amd64
extension: ".exe"
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Build
run: |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o netexecgo-${{ matrix.os }}-${{ matrix.goarch }}${{ matrix.extension }} main.go
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: netexecgo-${{ matrix.os }}-${{ matrix.goarch }}
path: netexecgo-${{ matrix.os }}-${{ matrix.goarch }}${{ matrix.extension }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: ./artifacts
- name: Prepare Release Files
run: |
mkdir release_files
find ./artifacts -type f -exec mv {} release_files/ \;
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: release_files/*