2023-10-22 19:54:21 +00:00
|
|
|
# .gitea/workflows/build.yaml
|
|
|
|
name: Build Veilid for Linux amd64
|
|
|
|
run-name: ${{ github.actor }} is building Veilid for linux_amd64
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-22 22:30:54 +00:00
|
|
|
- name: Install Basic Tools
|
|
|
|
run: apt-get install -y sed coreutils
|
2023-10-22 19:54:21 +00:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
- name: Setup build dependencies
|
2023-10-22 22:21:23 +00:00
|
|
|
run: /usr/bin/yes | /bin/bash -c "set -eo pipefail; $(/usr/bin/tail -n $((`/usr/bin/wc -l ./dev-setup/install_linux_prerequisites.sh | /usr/bin/sed -e 's/^\([0-9]\+\).*$/\1/'` - 8)) ./dev-setup/install_linux_prerequisites.sh)"
|
2023-10-22 19:54:21 +00:00
|
|
|
- name: Setup Linux Environment
|
2023-10-22 22:21:23 +00:00
|
|
|
run: /usr/bin/yes | /bin/bash -c "set -eo pipefail; $(/usr/bin/tail -n $((`/usr/bin/wc -l ./dev-setup/setup_linux.sh | /usr/bin/sed -e 's/^\([0-9]\+\).*$/\1/'` - 8)) ./dev-setup/setup_linux.sh)"
|
2023-10-22 19:54:21 +00:00
|
|
|
- name: Build Veilid
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
args: --release
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: dist-without-markdown
|
|
|
|
path: |
|
|
|
|
target
|
|
|
|
!dist/**/*.md
|