1313# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414jobs :
1515 build :
16- name : " Build"
16+ name : " Build on ${{ matrix.os.suffix }} "
1717
1818 strategy :
1919 matrix :
5858 vcpkgDirectory : ' ${{env.VCPKG_ROOT}}'
5959 vcpkgGitCommitId : ' ef7dbf94b9198bc58f45951adcf1f041fcbc5ea0'
6060 runVcpkgInstall : false
61+
62+ - name : Set up rust
63+ uses :
actions-rust-lang/[email protected] 6164
6265 # Run CMake+vcpkg+Ninja+CTest to generate/build/test.
6366 - name : Build and Test with CMake
7780 run : |
7881 cmake --install ${{github.workspace}}/_build/github-actions --config RelWithDebInfo --prefix ${{github.workspace}}/_build/ci-install --component ${{ matrix.target }}
7982
80- # Prepare artifact
81- - name : Prepare artifact
83+ # Prepare and Upload Artifact
84+ - name : Prepare and Upload Artifact
8285 id : prepare_artifact
8386 run : >
8487 python scripts/package_target.py
@@ -87,10 +90,37 @@ jobs:
8790 --artifact-dir ${{github.workspace}}/_build/ci-artifact
8891 --target ${{ matrix.target }}
8992 --suffix ${{ matrix.os.suffix }}
93+ - uses : actions/upload-artifact@v4
94+ with :
95+ name : ${{ steps.prepare_artifact.outputs.artifact_name }}
96+ path : ${{github.workspace}}/_build/ci-artifact/${{ steps.prepare_artifact.outputs.artifact_name }}
97+
98+ package :
99+ name : " Package Release"
100+ needs : build
101+ runs-on : ubuntu-latest
102+
103+ steps :
104+ - name : Download all artifacts
105+ uses : actions/download-artifact@v4
106+ with :
107+ path : artifacts
90108
91- # Upload result
92- - name : Upload build result
109+ - name : Copy hamdata.ini to Windows artifact
110+ run : |
111+ mkdir -p artifacts/AG-server-ci-windows/ag_addon/addons/amxmodx/configs
112+ cp artifacts/AG-server-ci-linux/ag_addon/addons/amxmodx/configs/hamdata.ini artifacts/AG-server-ci-windows/ag_addon/addons/amxmodx/configs/hamdata.ini
113+
114+ - name : Upload Windows Artifact
93115 uses : actions/upload-artifact@v4
94116 with :
95- name : ${{ steps.prepare_artifact.outputs.artifact_name }}
96- path : ${{github.workspace}}/_build/ci-artifact
117+ name : AG-server-ci-windows
118+ path : artifacts/AG-server-ci-windows
119+ overwrite : true
120+
121+ - name : Upload Linux Artifact
122+ uses : actions/upload-artifact@v4
123+ with :
124+ name : AG-server-ci-linux
125+ path : artifacts/AG-server-ci-linux
126+ overwrite : true
0 commit comments