feat: test CI
Some checks failed
ci / Deploy artifacts (push) Has been cancelled
ci / Lint GSC files (push) Has been cancelled

This commit is contained in:
2025-05-22 10:39:39 +02:00
parent 5562332e06
commit 79be77f4cb
30 changed files with 88 additions and 24 deletions

70
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,70 @@
name: ci
on: [push]
jobs:
lint:
name: Lint GSC files
runs-on: ubuntu-latest
steps:
- name: Install Git LFS
run: |
apt-get update
apt-get install -y git-lfs
git lfs install
- name: Check out files
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
lfs: true
token: ${{ secrets.LFS_AUTH_TOKEN }}
- name: Lint
uses: addnab/docker-run-action@v3
with:
registry: gcr.io
image: xensik/gsc-tool:latest
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
run: |
cd ${{ github.workspace }}
gsc-tool --dry -m comp -g iw6 -s pc "maps"
gsc-tool --dry -m parse -g iw6 -s pc "scripts"
deploy:
name: Deploy artifacts
needs: [lint]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y rsync
- name: Setup main environment
run: echo "ALTERWARE_MASTER_SERVER_PATH=${{ secrets.ALTERWARE_MASTER_SSH_PATH }}" >> $GITHUB_ENV
- name: Download data artifacts
uses: actions/download-artifact@v4
with:
name: data artifacts
- name: Install SSH key
uses: shimataro/ssh-key-action@v2.7.0
with:
key: ${{ secrets.ALTERWARE_MASTER_SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: Add known hosts
run: ssh-keyscan -H ${{ secrets.ALTERWARE_MASTER_SSH_ADDRESS }} >> ~/.ssh/known_hosts
- name: Remove old data files
run: ssh ${{ secrets.ALTERWARE_MASTER_SSH_USER }}@${{ secrets.ALTERWARE_MASTER_SSH_ADDRESS }} rm -rf ${{ env.ALTERWARE_MASTER_SERVER_PATH }}/iw6/data/*
- name: Upload data files
run: rsync -avz ./data/ ${{ secrets.ALTERWARE_MASTER_SSH_USER }}@${{ secrets.ALTERWARE_MASTER_SSH_ADDRESS }}:${{ env.ALTERWARE_MASTER_SERVER_PATH }}/iw6/data/
- name: Publish changes
run: ssh ${{ secrets.ALTERWARE_MASTER_SSH_USER }}@${{ secrets.ALTERWARE_MASTER_SSH_ADDRESS }} ${{ secrets.ALTERWARE_SSH_CHANGE_PUBLISH_COMMAND }}

View File

@ -1,22 +0,0 @@
name: lint
on: [push]
jobs:
lint:
name: Lint GSC files
runs-on: ubuntu-latest
steps:
- name: Check out files
uses: actions/checkout@v4
- name: Lint
uses: addnab/docker-run-action@v3
with:
registry: gcr.io
image: xensik/gsc-tool:latest
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
run: |
cd ${{ github.workspace }}
gsc-tool --dry -m comp -g iw6 -s pc "maps"
gsc-tool --dry -m parse -g iw6 -s pc "scripts"

View File

@ -1,6 +1,6 @@
BSD 3-Clause License
Copyright (c) 2024, AlterWare
Copyright (c) 2025, AlterWare
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -2505,7 +2505,7 @@ _death_trigger_monitor()
var_7 = "none";
var_8 = undefined;
var_0 maps\mp\alien\_death::onplayerkilled( var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8 );
logprint( "!!PLAYER WAS KILLED BY TRIGGER!! : " + var_0.name + " killed by death trigger at: " + var_0.origin + "\\n" );
logprint( "!!PLAYER WAS KILLED BY TRIGGER!! : " + var_0.name + " killed by death trigger at: " + var_0.origin + "\n" );
}
}
}

View File

@ -0,0 +1,16 @@
Open source software disclosure (effective as of October 18, 2023; subject to change)
This list of open-source code identifies open source code within this AlterWare client, and is intended to be a disclosure of a particular point in time only. Accordingly, you are advised that the List may be updated from time to time.
- asmjit zlib
- discord-rpc MIT
- gsc-tool GPL-3.0
- GSL MIT
- libtomcrypt LibTom
- libtommath LibTom
- minhook BSD 3-Clause
- protobuf BSD 3-Clause
- rapidjson MIT
- udis86 BSD 2-Clause
- WinToast MIT
- zlib (custom license)