Skip to content

use image from docker hub #40

use image from docker hub

use image from docker hub #40

Workflow file for this run

name: Build workflow
on:
push:
branches-ignore:
- 'master'
tags-ignore:
- '**'
paths:
- '.github/workflows/build.yaml'
- 'api/binding.h'
- 'api/libgo_owasm.dylib'
- 'api/libgo_owasm.so'
- 'libgo_owasm/**'
- 'build/**'
- 'Makefile'
jobs:
build_shared_lib_linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build shared libs
run: |
make release-linux
- name: Push artifact
uses: actions/upload-artifact@v3
with:
name: libgo_owasm.so
path: api/libgo_owasm.so
retention-days: 1
build_shared_lib_osx:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build shared libs
run: |
make release-osx
- name: Push artifact
uses: actions/upload-artifact@v3
with:
name: libgo_owasm.dylib
path: api/libgo_owasm.dylib
retention-days: 1
push:
needs:
- build_shared_lib_linux
- build_shared_lib_osx
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download libgo_owasm.so
uses: actions/download-artifact@v3
with:
name: libgo_owasm.so
path: api
- name: Download libgo_owasm.dylib
uses: actions/download-artifact@v3
with:
name: libgo_owasm.dylib
path: api
- name: Check if there is any change
id: check-diff
run: |
git add -A
git diff HEAD --quiet || echo "diff=true" >> $GITHUB_OUTPUT
- name: Commit and Push libs
if: steps.check-diff.outputs.diff == 'true'
run: |
git config --global user.name 'Builder'
git config --global user.email '[email protected]'
git commit -am "Built shared libs"
git push