Skip to content

Commit

Permalink
fix: fixing release action
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoc7 committed Apr 27, 2024
1 parent ff90009 commit 34057a3
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
matrix:
config:
- {
name: "win64",
name: "Windows",
os: windows-latest,
sys: "windows",
arch: "x64",
Expand All @@ -79,7 +79,7 @@ jobs:
artifact: "win-x64"
}
- {
name: "linux",
name: "Linux",
os: ubuntu-latest,
sys: "linux",
arch: "x64",
Expand All @@ -91,6 +91,13 @@ jobs:
}
fail-fast: false

outputs:
plugin-archive-full-Windows: ${{ steps.plugin-paths.outputs.PLUGIN_ARCHIVE_FULL-Windows }}
plugin-archive-full-Linux: ${{ steps.plugin-paths.outputs.PLUGIN_ARCHIVE_FULL-Linux }}

plugin-archive-name-Windows: ${{ steps.plugin-paths.outputs.PLUGIN_ARCHIVE_NAME-Windows }}
plugin-archive-name-Linux: ${{ steps.plugin-paths.outputs.PLUGIN_ARCHIVE_NAME-Linux }}

steps:
- uses: actions/checkout@v3
- name: Download Ninja and CMake
Expand Down Expand Up @@ -405,32 +412,6 @@ jobs:
path: ${{env.PLUGIN_ARCHIVE_FULL}}
name: ${{env.PLUGIN_ARCHIVE_NAME}}

publish:
needs: build
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: true

# Set up a matrix to run the following 2 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
matrix:
os: [ubuntu-latest, windows-latest]
include:
- name: "Windows x64"
os: windows-latest
artifact: "win-x64"
- name: "Linux x64"
os: ubuntu-latest
artifact: "linux-x64"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download release url
if: contains(github.ref, '/tags/v')
uses: actions/download-artifact@v2
Expand All @@ -455,4 +436,4 @@ jobs:
upload_url: ${{env.RELEASE_URL}}
asset_path: ${{env.PLUGIN_ARCHIVE_FULL}}
asset_name: ${{env.PLUGIN_ARCHIVE_NAME}}
asset_content_type: application/zip
asset_content_type: application/zip

0 comments on commit 34057a3

Please sign in to comment.