Try Gitea Actions
Some checks reported errors
Build / check-and-test (push) Failing after 20s
minecraft-pi-reborn/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
TheBrokenRail 2023-06-03 23:48:28 -04:00
parent 6779905830
commit 07a27d4dd9
3 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,26 @@
name: 'Build'
on: push
jobs:
check-and-test:
runs-on: ubuntu-latest
container: buildpack-deps:buster
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install CMake
run: |
echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list
apt-get update
apt-get install --no-install-recommends -y -t buster-backports cmake
- name: Install Dependencies
run: ./scripts/install-dependencies.sh amd64 armhf arm64
- name: Build
run: |
chmod +x ./scripts/ci/run.sh
./scripts/ci/run.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: ./out/**/*.AppImage

View File

@ -10,7 +10,5 @@ RUN \
# Install
ADD ./scripts/install-dependencies.sh /
RUN \
apt-get update && \
apt-get install --no-install-recommends -y sudo && \
/install-dependencies.sh amd64 armhf arm64 && \
rm -rf /var/lib/apt/lists/*

View File

@ -2,6 +2,13 @@
set -e
# Don't Use Sudo When Running As Root
if [ "$(id -u)" -eq 0 ]; then
sudo() {
"$@"
}
fi
# Main Script
run() {
# Add ARM Repository