Skip to content

Commit

Permalink
prepare for release via GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
chcg committed May 8, 2024
1 parent 64e1268 commit 04f3a44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/CI_MS_analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI_build
name: CI_MS_analysis

on: [push, pull_request]

Expand Down
29 changes: 14 additions & 15 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,22 @@ jobs:
working-directory: HexEditor\projects\2003\
run: msbuild HexEditor.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v143"

- name: Archive artifacts for x64
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: plugin_dll_x64
path: HexEditor\projects\2003\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\HexEditor.dll
- uses: olegtarasov/[email protected]
id: tagName

- name: Archive artifacts for Win32
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release'
- name: zip artifacts for ${{ matrix.build_platform }}
if: matrix.build_configuration == 'Release'
run: 7z a HexEditor_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\HexEditor\projects\2003\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\HexEditor.dll

- name: Archive artifacts for ${{ matrix.build_platform }}
if: matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: plugin_dll_x86
path: HexEditor\projects\2003\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\HexEditor.dll
name: HexEditor_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip
path: HexEditor_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip

- name: Archive artifacts for ARM64
if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
- name: Create release on tagging
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: plugin_dll_arm64
path: HexEditor\projects\2003\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\HexEditor.dll
files: HexEditor_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip

0 comments on commit 04f3a44

Please sign in to comment.