Skip to content

Commit abb40e7

Browse files
build: simplify release workflow
1 parent 4753ef4 commit abb40e7

6 files changed

Lines changed: 10 additions & 74 deletions

File tree

.github/workflows/build-linux-clang.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
branches: [main]
66
paths-ignore:
77
- "**/*.md"
8-
- "LICENSE.txt"
8+
- "LICENSE"
99
- ".gitignore"
1010
pull_request:
1111
branches: [main]
1212
paths-ignore:
1313
- "**/*.md"
14-
- "LICENSE.txt"
14+
- "LICENSE"
1515
- ".gitignore"
1616

1717
env:

.github/workflows/build-linux-gcc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
branches: [main]
66
paths-ignore:
77
- "**/*.md"
8-
- "LICENSE.txt"
8+
- "LICENSE"
99
- ".gitignore"
1010
pull_request:
1111
branches: [main]
1212
paths-ignore:
1313
- "**/*.md"
14-
- "LICENSE.txt"
14+
- "LICENSE"
1515
- ".gitignore"
1616

1717
env:

.github/workflows/build-windows-mingw.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
branches: [main]
66
paths-ignore:
77
- "**/*.md"
8-
- "LICENSE.txt"
8+
- "LICENSE"
99
- ".gitignore"
1010
pull_request:
1111
branches: [main]
1212
paths-ignore:
1313
- "**/*.md"
14-
- "LICENSE.txt"
14+
- "LICENSE"
1515
- ".gitignore"
1616

1717
env:

.github/workflows/build-windows-msvc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
branches: [main]
66
paths-ignore:
77
- "**/*.md"
8-
- "LICENSE.txt"
8+
- "LICENSE"
99
- ".gitignore"
1010
pull_request:
1111
branches: [main]
1212
paths-ignore:
1313
- "**/*.md"
14-
- "LICENSE.txt"
14+
- "LICENSE"
1515
- ".gitignore"
1616

1717
env:

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
branches: [main]
66
paths-ignore:
77
- "**/*.md"
8-
- "LICENSE.txt"
8+
- "LICENSE"
99
- ".gitignore"
1010
pull_request:
1111
branches: [main]
1212
paths-ignore:
1313
- "**/*.md"
14-
- "LICENSE.txt"
14+
- "LICENSE"
1515
- ".gitignore"
1616
schedule:
1717
- cron: "0 0 * * 1" # Weekly on Mondays at midnight UTC

.github/workflows/release.yml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -76,67 +76,3 @@ jobs:
7676
nfx-resource ${{ steps.tag.outputs.tag }} has been released.
7777
7878
📜 [Changelog](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md#${{ steps.tag.outputs.anchor }})
79-
80-
#============================================================================
81-
# Build source package
82-
#============================================================================
83-
84-
build-source:
85-
name: Source Package
86-
needs: create-release
87-
runs-on: ubuntu-latest
88-
steps:
89-
- name: Checkout code
90-
uses: actions/checkout@v6
91-
with:
92-
ref: ${{ needs.create-release.outputs.tag }}
93-
94-
- name: Install dependencies
95-
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build
96-
97-
- name: Configure CMake
98-
run: |
99-
cmake -B build -G Ninja \
100-
-DCMAKE_BUILD_TYPE=Release \
101-
-DNFX_RESOURCE_INSTALL_PROJECT=ON \
102-
-DNFX_RESOURCE_PACKAGE_SOURCE=ON
103-
104-
- name: Generate source packages
105-
run: |
106-
cd build
107-
cpack --config CPackSourceConfig.cmake
108-
109-
- name: Verify source packages created
110-
run: |
111-
echo "Source packages created:"
112-
ls -lh build/packages/
113-
114-
PACKAGE_COUNT=$(ls -1 build/packages/*Source* 2>/dev/null | wc -l)
115-
if [ "$PACKAGE_COUNT" -eq 0 ]; then
116-
echo "::error::No source packages were created!"
117-
exit 1
118-
fi
119-
echo "Found $PACKAGE_COUNT source package(s)"
120-
121-
- name: Generate checksums
122-
run: |
123-
cd build/packages
124-
sha256sum *Source* > SHA256SUMS.txt 2>/dev/null || true
125-
cat SHA256SUMS.txt
126-
127-
- name: Upload build artifacts
128-
uses: actions/upload-artifact@v5
129-
if: always()
130-
with:
131-
name: source-packages
132-
path: build/packages/
133-
retention-days: 7
134-
135-
- name: Upload to release
136-
uses: softprops/action-gh-release@v2
137-
with:
138-
tag_name: ${{ needs.create-release.outputs.tag }}
139-
draft: true
140-
files: |
141-
build/packages/*Source*
142-
build/packages/SHA256SUMS.txt

0 commit comments

Comments
 (0)