Debug Asio #25
This file contains hidden or 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: Release | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: install zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.14.1 | |
| - name: Installing libasio | |
| run: sudo apt update && sudo apt install git libasio-dev sqlite3 libsqlite3-dev | |
| - name: Download libsql | |
| run: | | |
| mkdir -p include | |
| curl -L \ | |
| https://github.com/tursodatabase/libsql-c/releases/download/v0.3.4/x86_64-unknown-linux-gnu-release.zip \ | |
| -o libsql.zip | |
| unzip libsql.zip -d libsql | |
| cp ./libsql/liblibsql.so include/libsql.so | |
| - name: asio fetch | |
| run: | | |
| curl -L https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-38-0.tar.gz | \ | |
| tar xz --strip-components=2 -C include asio-asio-1-38-0/asio/include | |
| - name: Build | |
| run: zig build -Dtarget=x86_64-linux -Doptimize=ReleaseFast | |
| - name: Upload Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| zig-out/bin/app | |
| include/libsql.so |