Build for Ubuntu 22.04 #1
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: 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 |