ci: devcontainerをサポート

This commit is contained in:
fkunn1326
2025-03-16 09:08:47 +09:00
parent a2e6e4208d
commit a9f568ddd3

View File

@@ -14,10 +14,19 @@ jobs:
with:
submodules: true
- name: Download pre-built llama.cpp binaries
run: |
wget -O llama-cpp-bin.zip "https://github.com/fkunn1326/llama.cpp/releases/download/b4846/llama-b4846-bin-ubuntu-x64.zip"
unzip llama-cpp-bin.zip -d llama-cpp-bin
- name: Copy llama.cpp binaries
run: cp llama-cpp-bin/build/bin/lib*.so ./
- name: Build and Test in DevContainer
uses: devcontainers/ci@v0.3
with:
push: never
runCmd: |
swift build -Xswiftc -strict-concurrency=complete -v
swift test -c release -Xswiftc -strict-concurrency=complete -v
swift build -c release -Xswiftc -strict-concurrency=complete -Xlinker -L./ -v
cp llama-cpp-bin/build/bin/lib*.so .build/*/release/
swift test -c release -Xswiftc -strict-concurrency=complete -Xlinker -L./ -v