Skip to content

Commit

Permalink
Add TamaGo test action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejro committed Feb 16, 2024
1 parent 9f60ea9 commit 1c8d699
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_tamago.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit 1c8d699

Please sign in to comment.