-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I like newlines and naming things
- Loading branch information
Showing
3 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
ARG UBUNTU_RELEASE=jammy | ||
|
||
ARG BUILD_TYPE=release | ||
ARG ENABLE_LTO=true | ||
|
||
FROM ubuntu:$UBUNTU_RELEASE AS build-stage | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
git ca-certificates build-essential libudev-dev libevdev-dev zlib1g-dev valac libgee-0.8-dev meson | ||
|
||
COPY . / | ||
ARG BUILD_TYPE=release | ||
ARG ENABLE_LTO=true | ||
|
||
RUN meson setup \ | ||
"--fatal-meson-warnings" \ | ||
"--buildtype=${BUILD_TYPE}" \ | ||
"-Db_lto=${ENABLE_LTO}" \ | ||
"--prefix=/usr" \ | ||
/build && \ | ||
meson compile -C /build && \ | ||
meson install "--destdir=/release/$(uname -m)" -C /build | ||
meson install --destdir="/release/$(uname -m)" -C /build | ||
|
||
FROM scratch AS export-stage | ||
|
||
COPY --from=build-stage /release/ / |