Try Gitea Actions
This commit is contained in:
parent
6779905830
commit
07a27d4dd9
26
.gitea/workflows/build.yml
Normal file
26
.gitea/workflows/build.yml
Normal 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
|
@ -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/*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user