Skip to content

use deployed plugin registry #114

use deployed plugin registry

use deployed plugin registry #114

Workflow file for this run

name: Build and Package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
include:
- os: ubuntu-20.04
output_file: vimana-linux-amd64.zip
make_command: build-linux
# - os: arm-mac # , arm-mac, amd-mac
# output_file: vimana-macos-arm64.zip
# make_command: build
# - os: amd-mac
# output_file: vimana-macos-amd64.zip
# make_command: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Run tests
run: make test
- name: Build Vimana
run: |
make ${{ matrix.make_command }}
make build
- name: Package Vimana for linux
run: zip ${{ matrix.output_file }} vimana-linux-amd64/vimana
- name: Package Vimana for mac
run: zip vimana-darwin-arm64.zip vimana-darwin-arm64/vimana
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.output_file }}
path: ${{ matrix.output_file }}
- name: Upload Artifacts Mac
uses: actions/upload-artifact@v2
with:
name: vimana-darwin-arm64.zip
path: vimana-darwin-arm64.zip