Skip to content

Commit

Permalink
Add .github (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 authored Sep 19, 2022
1 parent b524a59 commit e28764b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 27 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Go package

on: [push]

env:
app_name: tinygo-autocmpl

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build
run: go build -v ./...

- name: Test
run: echo go test -v ./...

- name: Publish artifact for ubuntu-latest
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: ${{ env.app_name }}-autocmpl-linux-amd64
path: |
${{ env.app_name }}
- name: Publish artifact for windows-latest
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: ${{ env.app_name }}-windows-amd64
path: |
${{ env.app_name }}.exe
- name: Publish artifact for macos-latest
if: runner.os == 'macOS'
uses: actions/upload-artifact@v2
with:
name: ${{ env.app_name }}-macos-amd64
path: |
${{ env.app_name }}
27 changes: 0 additions & 27 deletions cli_test.go

This file was deleted.

0 comments on commit e28764b

Please sign in to comment.