.gitea/workflows: add workflow for building map exports
This commit is contained in:
64
.gitea/workflows/build.yml
Normal file
64
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
name: "Build maps"
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
build-mapcrafter:
|
||||
runs-on: debian-latest-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Build map
|
||||
run: uv run mckart export-mapcrafter
|
||||
|
||||
# - name: Setup Biome
|
||||
# uses: biomejs/setup-biome@v2
|
||||
|
||||
# - name: Format map
|
||||
# run: biome format ./mapcrafter/* --write
|
||||
|
||||
- name: Transfer results
|
||||
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v1
|
||||
with:
|
||||
source: ./mapcrafter
|
||||
target: ${{ gitea.ref_name }}/mapcrafter/
|
||||
username: gitea-web
|
||||
ssh-key: ${{ secrets.WEB_SYNC_SSH_KEY }}
|
||||
host: pages.pvv.ntnu.no
|
||||
known-hosts: "pages.pvv.ntnu.no ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH2QjfFB+city1SYqltkVqWACfo1j37k+oQQfj13mtgg"
|
||||
|
||||
build-bluemap:
|
||||
runs-on: debian-latest-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Build map
|
||||
run: uv run mckart export-bluemap
|
||||
|
||||
- name: Transfer results
|
||||
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v1
|
||||
with:
|
||||
source: ./bluemap
|
||||
target: ${{ gitea.ref_name }}/bluemap/
|
||||
username: gitea-web
|
||||
ssh-key: ${{ secrets.WEB_SYNC_SSH_KEY }}
|
||||
host: pages.pvv.ntnu.no
|
||||
known-hosts: "pages.pvv.ntnu.no ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH2QjfFB+city1SYqltkVqWACfo1j37k+oQQfj13mtgg"
|
||||
|
||||
# build-nix:
|
||||
# runs-on: debian-latest
|
||||
# steps:
|
||||
# - name: Install sudo
|
||||
# run: apt-get update && apt-get -y install sudo
|
||||
|
||||
# - name: Install nix
|
||||
# uses: https://github.com/cachix/install-nix-action@v31
|
||||
|
||||
# - name: Configure nix
|
||||
# run: echo -e "show-trace = true\nmax-jobs = auto\ntrusted-users = root\nexperimental-features = nix-command flakes\nbuild-users-group =" > /etc/nix/nix.conf
|
||||
Reference in New Issue
Block a user