.gitea/workflows: add workflow for building map exports
Some checks failed
Build maps / evals (push) Failing after 1m19s

This commit is contained in:
2025-11-13 16:48:06 +09:00
parent 6a6a3b6c68
commit ce5d00fa4d

View File

@@ -0,0 +1,43 @@
name: "Build maps"
on:
pull_request:
push:
jobs:
evals:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
- name: Build maps
run: |
nix build .#mapcrafter-export -L -o result-mapcrafter
nix build .#bluemap-export -L -o result-bluemap
- name: Transfer mapcrafter results
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v1
with:
source: result-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"
- name: Transfer bluemap results
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v1
with:
source: result-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"