-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use the latest common actions * fix windows exports for static and shared library
- Loading branch information
Showing
6 changed files
with
40 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,68 +6,27 @@ on: | |
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: [develop] | ||
branches: [main,develop] | ||
jobs: | ||
build_test_package: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest,macos-latest,windows-latest] | ||
|
||
uses: EddyTheCo/Common/.github/workflows/[email protected].1 | ||
uses: EddyTheCo/Common/.github/workflows/[email protected].2 | ||
with: | ||
os: ${{ matrix.os }} | ||
qtVersion: '6.8.1' | ||
qtModules: 'qtshadertools' | ||
|
||
release: | ||
release-deploy: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
needs: build_test_package | ||
runs-on: ubuntu-latest | ||
|
||
needs: [build_test_package] | ||
uses: EddyTheCo/Common/.github/workflows/[email protected] | ||
with: | ||
release: true | ||
permissions: | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
|
||
- name: Move repositories to webpage | ||
run: | | ||
mv artifacts/common/html github-pages | ||
mv artifacts/common . | ||
mkdir github-pages/packages/ ${{runner.temp}}/platforms/ | ||
mv artifacts/*/_CPack_Packages/* ${{runner.temp}}/platforms/ | ||
for i in ${{runner.temp}}/platforms/*; do mv $i/IFW/*/repository/* $i/; rm -rf $i/IFW $i/TGZ; done; | ||
mv ${{runner.temp}}/platforms/* github-pages/packages/ | ||
rm -rf artifacts/*/_CPack_Packages | ||
- name: Package github-page | ||
working-directory: ${{ github.workspace }}/github-pages/ | ||
run: | | ||
cmake -E make_directory ${{runner.temp}}/page-packages | ||
cmake -E tar c ${{runner.temp}}/page-packages/github-pages.tar -- . | ||
- name: Releases | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ./artifacts/*/* | ||
body_path: ./common/CHANGELOG.md | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: 'github-pages' | ||
path: ${{runner.temp}}/page-packages/* | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
branches: [develop] | ||
jobs: | ||
checkout-format-pr: | ||
uses: EddyTheCo/Common/.github/workflows/[email protected].0 | ||
uses: EddyTheCo/Common/.github/workflows/[email protected].2 | ||
if: ${{ (github.event.pull_request.merged == true) && (startsWith(github.base_ref, 'develop')) }} | ||
permissions: | ||
contents: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,29 +7,9 @@ on: | |
types: | ||
- completed | ||
jobs: | ||
download-comment: | ||
runs-on: ubuntu-latest | ||
qmllint-comment: | ||
uses: EddyTheCo/Common/.github/workflows/[email protected] | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
permissions: | ||
actions: read | ||
pull-requests: write | ||
steps: | ||
- name: 'Download artifact' | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: common | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
run-id: ${{ github.event.workflow_run.id }} | ||
|
||
- name: Read pr number | ||
id: getprn | ||
run: | | ||
cat pr_number | ||
echo "prn=$(cat pr_number)" >> $GITHUB_OUTPUT | ||
- name: 'Run reviewer' | ||
uses: EddyTheCo/qmllint-action/@v0.1.0 | ||
with: | ||
jsondir: ${{ github.workspace }} | ||
pr_number: ${{ steps.getprn.outputs.prn }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Auto-Create Develop Branch | ||
run-name: Recreating develop branch | ||
|
||
on: | ||
pull_request_target: | ||
types: [closed] | ||
branches: [main] | ||
|
||
jobs: | ||
create-develop-branch: | ||
uses: EddyTheCo/Common/.github/workflows/[email protected] | ||
if: ${{ (github.event.pull_request.merged == true) && (startsWith(github.base_ref, 'main')) && (startsWith(github.head_ref, 'develop'))}} | ||
permissions: | ||
contents: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters