ci: Canonical testing (#4) #15
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
name: Semantic Release | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Install dependencies | |
run: go get . | |
- name: Install ONNX Runtime | |
run: | | |
wget https://github.com/microsoft/onnxruntime/releases/download/v1.16.0/onnxruntime-linux-x64-1.16.0.tgz | |
tar xvzf onnxruntime-linux-x64-1.16.0.tgz | |
echo "ONNX_PATH=$(pwd)/onnxruntime-linux-x64-1.16.0/lib/libonnxruntime.so" >> $GITHUB_ENV | |
- name: Test with Go | |
run: go test | |
release: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
steps: | |
- name: "☁️ checkout repository" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: "🔧 setup Bun" | |
uses: oven-sh/setup-bun@v1 | |
- name: "📦 install dependencies" | |
run: bun install -D conventional-changelog-conventionalcommits | |
- name: "Semantic release🚀" | |
id: release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
bun x semantic-release |