Skip to content

Commit

Permalink
Add SQLite libraries to build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jkchen2 authored Jan 2, 2024
1 parent 04b0f44 commit d3c064d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ jobs:

- name: Build Windows binary
run: dotnet publish --runtime win-x64 --configuration Release --output artifacts/win-x64 /p:PublishSingleFile=true Floofbot/Floofbot.csproj
- run: zip -j artifacts/win-x64/Floofbot_win-x64.zip artifacts/win-x64/Floofbot.exe
- run: zip -j artifacts/win-x64/Floofbot_win-x64.zip artifacts/win-x64/Floofbot.exe artifacts/win-x64/e_sqlite3.dll
- uses: actions/upload-artifact@v2
with:
name: build_artifacts
path: artifacts/win-x64/Floofbot_win-x64.zip

- name: Build Linux binary (full)
run: dotnet publish --runtime linux-x64 --configuration Release --output artifacts/linux-x64 /p:PublishSingleFile=true Floofbot/Floofbot.csproj
- run: tar -czf artifacts/linux-x64/Floofbot_linux-x64.tar.gz -C artifacts/linux-x64 Floofbot
- run: tar -czf artifacts/linux-x64/Floofbot_linux-x64.tar.gz -C artifacts/linux-x64 Floofbot libe_sqlite3.so
- uses: actions/upload-artifact@v2
with:
name: build_artifacts
path: artifacts/linux-x64/Floofbot_linux-x64.tar.gz

- name: Build Linux binary (musl)
run: dotnet publish --runtime linux-musl-x64 --configuration Release --output artifacts/linux-musl-x64 /p:PublishSingleFile=true Floofbot/Floofbot.csproj
- run: tar -czf artifacts/linux-musl-x64/Floofbot_linux-musl-x64.tar.gz -C artifacts/linux-musl-x64 Floofbot
- run: tar -czf artifacts/linux-musl-x64/Floofbot_linux-musl-x64.tar.gz -C artifacts/linux-musl-x64 Floofbot libe_sqlite3.so
- uses: actions/upload-artifact@v2
with:
name: build_artifacts
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN mkdir data
# Copy files
COPY Floofbot/Scripts/LinuxDBBackup.sh .
COPY artifacts/linux-musl-x64/Floofbot .
COPY artifacts/linux-musl-x64/libe_sqlite3.so .

# Fix for running in a container
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
Expand Down

0 comments on commit d3c064d

Please sign in to comment.