Skip to content

Commit

Permalink
GH-14: Add test CI: TinyGo (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
kou authored Sep 10, 2024
1 parent b000583 commit cc5bf33
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,22 @@ jobs:
- name: Test
# WIP refactor, only tests in the specified dirs have been fixed
run: GOARCH=386 go test ./parquet/file/...
tinygo:
name: TinyGo
runs-on: ubuntu-latest
env:
TINYGO_VERSION: 0.33.0
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
- name: Build and Run Example
run: |
docker run \
--rm \
-v $(pwd):/src \
-v $(pwd)/ci/scripts:/ci-scripts \
"tinygo/tinygo:$TINYGO_VERSION" \
/ci-scripts/tinygo_example.sh
27 changes: 27 additions & 0 deletions ci/scripts/tinygo_example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

set -eux

cd ~
pushd /src
tinygo build -tags noasm -o ~/example_tinygo arrow/_examples/helloworld/main.go
popd

./example_tinygo

0 comments on commit cc5bf33

Please sign in to comment.