Add TamaGo test action #1
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
on: [push, pull_request] | |
name: Test TamaGo | |
jobs: | |
test-tamago: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install TamaGo | |
run: | | |
wget https://github.com/usbarmory/tamago-go/releases/download/tamago-go${VERSION}/tamago-go${VERSION}.linux-amd64.tar.gz | |
sudo tar -xvf tamago-go${VERSION}.linux-amd64.tar.gz -C / | |
env: | |
VERSION: 1.21.6 | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Test | |
run: | | |
mkdir test_tamago ; cd test_tamago | |
cat << EOF >> test_tamago.go | |
package main | |
import ( | |
_ "github.com/go-git/go-billy/osfs" | |
) | |
func main() {} | |
EOF | |
$TAMAGO mod init test | |
$TAMAGO mod tidy | |
$TAMAGO build test_tamago.go | |
env: | |
GOOS: tamago | |
GOARCH: arm | |
TAMAGO: /usr/local/tamago-go/bin/go |