mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 10:38:33 -04:00
33 lines
676 B
YAML
33 lines
676 B
YAML
name: Odin
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libsodium-dev sqlite3 libsqlite3-dev libsodium-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 .
|