Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
eff6045
Create pages.yml
stm2 Aug 30, 2022
4189876
trying jekyll pages
stm2 Aug 30, 2022
51312c7
create svg from cr
stm2 Sep 2, 2022
126a8a5
region:setresourcelevel(type, value, level, divisor) for iron-like re…
stm2 Aug 9, 2022
cf3b818
clear_reservations command (needed for multiple process_orders calls)
stm2 Aug 9, 2022
4f94193
rng.active() for re-enabling rng adter rng.inject(int)
stm2 Aug 9, 2022
b8dc228
faction:free_messages removes battle messages
stm2 Feb 15, 2021
8a481ed
added s/bash_source command to update environment before calling s/ru…
stm2 Mar 25, 2021
41798cb
set_debug for dirty debugging (fprintf-style)
stm2 Sep 2, 2021
2511aa6
region:add_road(direction)
stm2 Jan 16, 2022
edcb33f
add new peasants in empty region only if they can work
stm2 Jan 16, 2022
7604dbf
added round parameter to pest message
stm2 Jan 23, 2022
db48f75
region:get_terrain_flag(flag)
stm2 Feb 8, 2022
bef416e
refactored demo
stm2 Aug 8, 2022
c3a974e
WIP
stm2 Aug 22, 2022
fd033ff
WIP
stm2 Sep 2, 2022
d9b1465
refactored demo cr pages
stm2 Sep 5, 2022
c524354
fixed run_demo paths
stm2 Sep 5, 2022
1068cff
changes for svg reports
stm2 Sep 6, 2022
589031b
working on demo pages
stm2 Sep 5, 2022
b2c837c
working on md integration
stm2 Sep 6, 2022
63b8ba2
added md option
stm2 Sep 7, 2022
7913f72
refactored cr2svg
stm2 Sep 8, 2022
6c39653
Merge branch 'demo_report' into stm-web
stm2 Sep 8, 2022
e5fa15f
amend
stm2 Sep 8, 2022
f95a410
amend
stm2 Sep 14, 2022
91e6afe
Merge branch 'develop' into stm-web
stm2 Aug 30, 2023
c1e413f
WIP
stm2 Aug 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["stm-web"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest
- name: Update APT
run: sudo apt update
- name: Install dependencies
run: |
sudo apt install libutf8proc-dev libexpat1-dev liblua5.2-dev lua5.2 luarocks libtolua-dev libncurses5-dev libsqlite3-dev libiniparser-dev libcjson-dev libbsd-dev cppcheck shellcheck clang-tools iwyu
luarocks install lunitx --local
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Build and Test
uses: threeal/[email protected]
with:
build-dir: ${{ runner.workspace }}/server/build
args: "-DCMAKE_BUILD_TYPE=Debug"
run-test: true

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Create demos
run: |
cd stm-jekyll
bash scripts/create_demos.sh
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./stm-jekyll
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
12 changes: 12 additions & 0 deletions demo/eressea.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[game]
name = Eressea
id = 2
email = [email protected]
verbose = 0
locales = de,en

[lua]
install = ..
paths = scripts
maxnmrs = 20
rules = e2
21 changes: 21 additions & 0 deletions demo/run_demo
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -ex

eval $(luarocks path)
ROOT=$(git rev-parse --show-toplevel)
export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
BUILD=$ROOT/build

if [ ! -e $BUILD ]; then
echo "cannot find build directory $BUILD in $ROOT. did you run cmake-init?"
exit
fi

RUN_ERESSEA="$BUILD/eressea/eressea"

cd $ROOT/demo
rm -rf reports orders.txt score score.alliances datum turn
$RUN_ERESSEA -v1 ../scripts/run-demo.lua
$RUN_ERESSEA --version

cd $OLDWPD
1 change: 1 addition & 0 deletions res/core/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5447,6 +5447,7 @@
<type>
<arg name="dead" type="int"/>
<arg name="peasants" type="resource"/>
<arg name="round" type="int"/>
</type>
</message>
<message name="error131" section="errors">
Expand Down
2 changes: 1 addition & 1 deletion res/translations/messages.de.po
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ msgid "confusion_effect_0"
msgstr "\"$unit($mage) stimmt einen seltsamen Gesang an. Ein plötzlicher Tumult entsteht, der sich jedoch schnell wieder legt.\""

msgid "pest"
msgstr "\"Hier wütete die Pest, und $int($dead) $resource($peasants,$dead) $if($eq($dead,1), \"starb\", \"starben\").\""
msgstr "\"Hier wütete die Pest, und $int($dead) $resource($peasants,$dead) $if($eq($dead,1), \"starb\", \"starben\") ($int($round)).\""

msgid "wormhole_exit"
msgstr "\"$unit($unit) reist durch ein Wurmloch nach $region($region).\""
Expand Down
Loading