Skip to content

Commit

Permalink
feat: Add lake CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderssorby committed Dec 25, 2023
1 parent 54115d3 commit 8bff511
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 28 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches-ignore:
# ignore tmp branches used by bors
- 'staging.tmp*'
- 'trying.tmp*'
- 'staging*.tmp'
pull_request:

name: ci

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
NIX_BUILD_ARGS: -v --print-build-logs --fallback --show-trace
steps:
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
experimental-features = nix-command flakes ca-references
- name: install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.2/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: build
run: nix develop $NIX_BUILD_ARGS --command lake build

- name: test SDL
run: nix develop $NIX_BUILD_ARGS --command lake exe Tests
28 changes: 0 additions & 28 deletions .github/workflows/nix.yml

This file was deleted.

0 comments on commit 8bff511

Please sign in to comment.