Skip to content

Commit

Permalink
add build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
michabirklbauer committed Apr 16, 2024
1 parent 1cb5d8c commit eab0c06
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build for macOS

on:
workflow_dispatch:

jobs:
Build-for-macOS:
runs-on: macos-14
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6'
- name: Build CandidateSearch
run: |
dotnet publish CandidateSearch.sln --runtime osx-arm64 --self-contained --configuration Release
- name: Copy VectorSearch.dll to Release
run: |
cp dll/macos_arm/VectorSearch.dll bin/Release/net6.0/osx-arm64
cp dll/macos_arm/VectorSearch.dll bin/Release/net6.0/osx-arm64/publish
- name: Zip Release
run: |
cd bin/
zip -r Release.zip Release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: release-macos-arm64-cpu-only
path: bin/Release.zip
31 changes: 31 additions & 0 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build for Ubuntu 22.04

on:
workflow_dispatch:

jobs:
Build-for-Ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6'
- name: Build CandidateSearch
run: |
dotnet publish CandidateSearch.sln --runtime ubuntu.22.04-x64 --self-contained --configuration Release
- name: Copy VectorSearch.dll to Release
run: |
cp dll/ubuntu_x64/VectorSearch.dll bin/Release/net6.0/ubuntu.22.04-x64
cp dll/ubuntu_x64/VectorSearch.dll bin/Release/net6.0/ubuntu.22.04-x64/publish
- name: Zip Release
run: |
cd bin/
zip -r Release.zip Release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: release-ubuntu-22.04-x64-cpu-only
path: bin/Release.zip

0 comments on commit eab0c06

Please sign in to comment.