Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,4 @@ on:
- 'main'
jobs:
package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Ninja
run: choco install ninja
- name: Generate Ninja build
run: cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_COMPILER=clang
- name: Package
run: cmake --build build --target package
- uses: actions/upload-artifact@v3
with:
name: package
path: |
build/*.msi
build/*.zip
if-no-files-found: error
uses: ./.github/workflows/reusable-package.yml
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
required: true
type: string
jobs:
package:
uses: ./.github/workflows/reusable-package.yml
release:
runs-on: ubuntu-latest
steps:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/reusable-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Package
on:
workflow_call:
jobs:
package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Ninja
run: choco install ninja
- name: Generate Ninja build
run: cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_COMPILER=clang
- name: Package
run: cmake --build build --target package
- uses: actions/upload-artifact@v3
with:
name: package
path: |
build/*.msi
build/*.zip
if-no-files-found: error