1
0
Fork 0
mirror of https://codeberg.org/spire/autoexec.git synced 2026-08-02 12:14:52 +02:00

ci tweaks

This commit is contained in:
Robin Appelman 2026-07-23 23:47:55 +02:00
commit 0923c5fdfe
3 changed files with 13 additions and 13 deletions

View file

@ -12,27 +12,27 @@ jobs:
PLUGIN: "autoexec"
steps:
- uses: actions/checkout@v4
- id: check_file_outdated
name: Check if compiled smx is outdated
run: |
if [ ./plugin/${{ env.PLUGIN }}.sp -nt ./plugin/${{ env.PLUGIN }}.smx ]; then
echo "${{ env.PLUGIN }}.smx is up to date"
echo "outdated=false" >> $GITHUB_OUTPUT
else
echo "${{ env.PLUGIN }}.smx is outdated"
echo "outdated=true" >> $GITHUB_OUTPUT
fi
- uses: https://codeberg.org/icewind/attic-action@v1
if: steps.check_file_outdated.outputs.outdated == 'true'
with:
name: link
instance: https://cache.icewind.link
authToken: "${{ secrets.ATTIC_TOKEN }}"
- name: Build
if: steps.check_file_outdated.outputs.outdated == 'true'
run: nix build && cp -L result ./plugin/${{ env.PLUGIN }}.smx
- id: check_file_outdated
name: Check if compiled smx needs committing
run: |
git status --porcelain
if [ -n "$(git status --porcelain)" ]; then
echo "${{ env.PLUGIN }}.smx is changed"
echo "outdated=true" >> $GITHUB_OUTPUT
else
echo "${{ env.PLUGIN }}.smx is unchanged"
echo "outdated=false" >> $GITHUB_OUTPUT
fi
- name: Commit files
if: steps.check_file_outdated.outputs.outdated == 'true'
run: |

Binary file not shown.

View file

@ -11,6 +11,7 @@ public Plugin:myinfo = {
url = "https://codeberg.org/spire/autoexec/"
};
new StringMap:mapPrefixMap;
new StringMap:mapOverwriteMap;
new StringMap:mapTypeMap;
@ -79,7 +80,6 @@ public RestoreCfg() {
initialized = true;
}
public ExecMapCfg() {
decl String:config[128];
decl String:map[128];