-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1061 from Morganamilo/ci2
- Loading branch information
Showing
69 changed files
with
1,333 additions
and
888 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target | ||
paru.tar.* |
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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
paru.tar.* | ||
po/*.mo | ||
locale/ | ||
testdata/pkg/* |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 +1,40 @@ | ||
FROM lopsided/archlinux:devel | ||
FROM debian:unstable as build-stage | ||
|
||
WORKDIR /app | ||
ARG PACMAN_VER=6.0.2 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /pacman | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install -y build-essential git libcurl4-openssl-dev curl meson ninja-build \ | ||
libarchive-dev pkg-config libgpgme-dev libssl-dev clang python3 python3-setuptools \ | ||
gettext zstd | ||
|
||
RUN curl -O https://sources.archlinux.org/other/pacman/pacman-${PACMAN_VER}.tar.xz | ||
RUN tar -xf pacman-${PACMAN_VER}.tar.xz | ||
|
||
WORKDIR pacman-${PACMAN_VER} | ||
|
||
RUN meson setup \ | ||
--prefix=/usr \ | ||
--buildtype=plain \ | ||
build | ||
|
||
RUN ninja -C build | ||
RUN ninja -C build install | ||
|
||
WORKDIR /paru | ||
|
||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ | ||
sh -s -- -y --no-modify-path --profile minimal --default-toolchain nightly | ||
|
||
COPY ../ . | ||
|
||
RUN pacman -Sy --noconfirm archlinux-keyring | ||
RUN pacman -Su --noconfirm rustup | ||
RUN rustup default nightly | ||
RUN --mount=type=tmpfs,target=/root/.cargo ./scripts/dist | ||
RUN ./scripts/dist | ||
RUN --mount=type=tmpfs,target=/usr/local/cargo/git ./scripts/dist | ||
|
||
FROM scratch AS export-stage | ||
COPY --from=build-stage /paru/paru.tar.zst / |
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,6 +1,9 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
set -e | ||
cargo build --release --locked --target-dir target -Z sparse-registry | ||
|
||
cargo build --release --features generate --locked --target-dir target | ||
scripts/mkmo locale/ | ||
strip target/release/paru | ||
tar --zstd -cfparu.tar.zst man completions paru.conf locale -C target/release paru | ||
|
||
tar --zstd -cf paru.tar.zst man completions paru.conf locale -C target/release paru | ||
|
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,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -z "$1" ]; then | ||
|
Oops, something went wrong.