Skip to content

Commit

Permalink
update for 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Dec 31, 2023
1 parent a2e033f commit 69c01ea
Show file tree
Hide file tree
Showing 13 changed files with 2,649 additions and 101 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ jobs:
build:
name: Build (${{ matrix.config }})
runs-on: windows-latest
permissions:
contents: write

strategy:
matrix:
Expand All @@ -22,6 +24,7 @@ jobs:
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DCMAKE_CI_BUILD=ON -DGITHUB_ENV="$env:GITHUB_ENV" -G Ninja

- name: Build
id: build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.config }}

- name: Get short SHA
Expand Down Expand Up @@ -61,4 +64,19 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ env.MOD_ZIP_FILENAME }}_${{ env.PRETTY_CONFIG }}_${{ env.SHORT_SHA }}_requirements_pdb
path: ${{ github.workspace }}/game_dir_requirements_debug/**
path: ${{ github.workspace }}/game_dir_requirements_debug/**

- name: 'Version Badge'
if: always()
run: |
mkdir badge
echo '{"cp_version":{"label":"Cyberpunk 2077","status":"${{ env.CYBERPUNK_2077_GAME_VERSION }}","color":"${{ steps.build.outcome == 'success' && '31b75d' || 'red' }}"}}' > badge/shields.json
- name: Push shields branch
if: github.ref == 'refs/heads/main'
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: shields
FOLDER: badge
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,32 @@ jobs:
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_pdb.zip" --format=zip *
working-directory: game_dir_debug

- name: Check file existence
id: requirements_folder_exists
uses: andstor/file-existence-action@v1
with:
files: "game_dir_requirements"

- name: Check file existence
id: requirements_debug_folder_exists
uses: andstor/file-existence-action@v1
with:
files: "game_dir_requirements_debug"

- name: Zipping game_dir_requirements
if: steps.requirements_folder_exists.outputs.files_exists == 'true'
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_requirements.zip" --format=zip *
working-directory: game_dir_requirements

- name: Zipping game_dir_requirements_debug
if: steps.requirements_debug_folder_exists.outputs.files_exists == 'true'
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_requirements_pdb.zip" --format=zip *
working-directory: game_dir_requirements_debug

- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}${{ env.CYBERPUNK_2077_GAME_VERSION_STR }}
body_path: ${{ env.CHANGELOG_FILE }}
append_body: true
files: |
Expand Down
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ target_link_libraries(${MOD_SLUG}.dll
target_compile_definitions(${MOD_SLUG}.dll PRIVATE DLLDIR_EX)

configure_mod_file(inputUserMappings.xml red4ext/plugins/${MOD_SLUG}/inputUserMappings.xml)
configure_uninstall_file(engine/config/platform/pc/input_loader.ini)
configure_uninstall_file(r6/cache/inputContexts.xml)
configure_uninstall_file(r6/cache/inputUserMappings.xml)
configure_mod_file(input_loader.ini engine/config/platform/pc/input_loader.ini)
configure_mod_file(inputContexts.xml r6/cache/inputContexts.xml)
configure_mod_file(inputUserMappings.xml r6/cache/inputUserMappings.xml)
configure_folder_file(readme.md)
configure_folder_file(license.md)
configure_uninstall()
# configure_uninstall()
configure_release(${MOD_SLUG}_${MOD_VERSION_STR}.zip)
configure_install()
12 changes: 6 additions & 6 deletions compile_commands.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deps/red4ext.sdk
Submodule red4ext.sdk updated 3041 files
Binary file not shown.
2,055 changes: 2,055 additions & 0 deletions inputContexts.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 69c01ea

Please sign in to comment.