Skip to content

Commit

Permalink
Bump OS to bullseye and try a github CI docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcoder committed Feb 2, 2024
1 parent d206399 commit 8f5a8ea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build Canute UI book indexer
on:
push:
branches:
- main
- 285-rust-cross-compilation
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build docker images
run: docker build -t bristol-braille/bookindex:latest < Dockerfile
- name: Run tests
run: docker run -t -e "HOME=/work" -w /work -v "$PWD:/work" bristol-braille/bookindex:latest
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Based on https://github.com/mdirkse/rust_armv6
# We use buster to match glibc versions with raspios old stable
FROM rust:slim-buster
# We use bullseye to match glibc versions with raspios old stable
FROM --platform=linux/amd64 rust:slim-bullseye

# Prevent any error messages about there not being a terminal
ENV DEBIAN_FRONTEND noninteractive
Expand Down

0 comments on commit 8f5a8ea

Please sign in to comment.