build: Converted Makefile and flake package.

This commit is contained in:
2026-06-12 15:58:27 -04:00
parent d56f11250c
commit 0a74b0dbcc
10 changed files with 105 additions and 185 deletions

31
.github/workflows/odin.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Odin
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsodium-dev sqlite3 libsqlite3-dev
- name: Install Odin
run: |
git clone https://github.com/odin-lang/Odin.git /opt/odin
cd /opt/odin
./build_odin.sh release
echo "/opt/odin" >> "$GITHUB_PATH"
- name: Build
run: odin build . -o:speed -out:envr
- name: Test
run: odin test .