Skip to content

Add checks to validate bin builds #9

Add checks to validate bin builds

Add checks to validate bin builds #9

Workflow file for this run

name: Dockerfile Build
on:
push:
pull_request:
jobs:
build-binaries:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Container
run: |
make container-init
- name: Run Container to Build Binaries
run: |
docker run --rm -v $(pwd):/fioctl fioctl-build sh -c "git config --global --add safe.directory /fioctl && make build"
- name: Archive Binaries
uses: actions/upload-artifact@v2
with:
name: binaries
path: bin/
test:
needs: build-binaries
strategy:
matrix:
include:
- os: ubuntu-latest
binary: fioctl-linux-amd64
- os: windows-latest
binary: fioctl-windows-amd64.exe
- os: macos-latest
binary: fioctl-darwin-amd64
runs-on: ${{ matrix.os }}
steps:
- name: Download Binaries
uses: actions/download-artifact@v2
with:
name: binaries
path: bin/
- name: Set Execute Permission
run: chmod +x ./bin/${{ matrix.binary }}
if: runner.os != 'Windows'
- name: Test Binary
run: ./bin/${{ matrix.binary }} logout