-
Notifications
You must be signed in to change notification settings - Fork 0
(Assimp) Syncing fork. #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
2b773f0
2090508
ecc8a1c
9f3a7e9
1ce3164
016be03
258cdfd
7bd54e3
ab5b32e
5e09157
69558d8
d70606b
437b484
bbeb515
a4d8a5f
2f40a77
d386309
5fa7b8c
f2c6aa1
0834fed
5aa38fe
8e44b40
e722420
2f6dcdf
1e44036
2a0969d
79d451b
ba4455c
d91e0e4
f131979
31f0dcb
2aac984
bc47836
9f3cd51
53b5dba
d41511b
f967e76
7efb98d
9bb6f2e
7945359
b58afb7
5d716b8
2bce77f
f52fcb6
45898ee
70459b4
f398a70
c1eedbb
7c705fd
7f2c9d7
bcf11c2
d2c6e64
4b8f55c
2194944
e8a6286
2690e35
a93b9f8
5a1cc9e
e2ee7d2
d307c9f
cbf279d
ac0b19a
79cba05
88959b2
b57f7d3
55e6359
e27204c
0ae66d2
2f3e724
e68ea14
4ee7b9d
ac59884
cb56793
275eca9
9182879
0c02313
b0e0ce5
d1b73df
0dafa03
af352d6
2056679
327afe0
536cd59
b9bfac0
6407345
9d9a807
b40e41f
ed89a02
2c77d25
696771d
1933313
3e8673b
4f3a759
315075c
d2aed87
18465fb
4535ff9
4ad1d2a
b973086
7b38feb
7eb6b0c
c4515f5
b3a47a6
a98ffe6
5d39661
8621d52
c1d6226
177797c
5be3367
2699870
357b5ba
2d8c09b
a95addf
fb375dd
ad6e8e2
b2afe71
d99f9bd
4b6cc8c
4c61ca3
b447485
db0bde7
a79dc35
edcb350
59bc03d
9f4e7c6
6fa9d09
8355e0c
9255412
1331679
6d7ea78
e3f9cf5
3a0ee87
36b004e
26e2372
4c42db1
a38ec50
3f107be
aadd493
f7bbf6d
4418843
8ef3838
4c8a3bd
72b9939
69f8eb2
a815a78
01ac320
dd98d4a
45cb880
5c56861
0581ed5
489c8d5
709fe3c
b8133b0
1894bfb
6401aa9
f28a961
194da5b
f544f9c
cc6ab14
7dcf6a8
5f7c06a
e778c84
95f09de
b2d5fa2
276d3e9
ea249be
8e35cb1
0978918
672594c
0996221
a4b8943
34cda45
3e2e3c9
c6f997b
0be7cdd
e98ec7b
1cc7f2b
a53807a
05a4fb5
19108df
c4812fc
ab28db5
a989b30
0b30e3b
f635984
f588492
11272f1
ac0cfc8
10cd898
4d19788
6ef6d84
7d1fa60
c087c20
7538628
3761ee6
9481ce8
e3b13a4
5245511
c0b8cfa
0373bbe
a438bbb
c584961
f4980c4
8c0ab23
0fb7c4a
ae6f477
c234aa2
ac8eac6
17318b0
522c703
1ce99b9
d8a9074
d1e6bcf
129c133
cf7b652
d5091bb
e0b5234
ae6633e
18798f1
5c5ae38
36c3a19
e38451f
b4c7912
8acd2c9
970f869
21607df
3e188e6
3e672ff
10be273
8ef1461
929bff1
e13e0b5
553fbc1
8a073f7
38f3e8d
dc54c9f
e701994
b2852bc
b10b8ab
29df28d
1569f6a
b5f567b
fcb1702
8ff0055
048bece
9c10e7d
021bbff
158da57
de77101
17c12da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,22 +7,30 @@ on: | |||||||||||||||||||||||||||||||||||||||||
| branches: [ master ] | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||||||||||||||||||||
| contents: read # to fetch code (actions/checkout) | ||||||||||||||||||||||||||||||||||||||||||
| contents: write # to fetch code (actions/checkout),and release | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||
| job: | ||||||||||||||||||||||||||||||||||||||||||
| build: | ||||||||||||||||||||||||||||||||||||||||||
| name: ${{ matrix.name }}-build-and-test | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ${{ matrix.os }} | ||||||||||||||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||||||||||||||
| fail-fast: false | ||||||||||||||||||||||||||||||||||||||||||
| matrix: | ||||||||||||||||||||||||||||||||||||||||||
| name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter] | ||||||||||||||||||||||||||||||||||||||||||
| name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, windows-latest-clang.exe, ubuntu-latest-clang++] | ||||||||||||||||||||||||||||||||||||||||||
| # For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux. | ||||||||||||||||||||||||||||||||||||||||||
| include: | ||||||||||||||||||||||||||||||||||||||||||
| - name: windows-latest-clang.exe | ||||||||||||||||||||||||||||||||||||||||||
| os: windows-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: clang++.exe | ||||||||||||||||||||||||||||||||||||||||||
| cc: clang.exe | ||||||||||||||||||||||||||||||||||||||||||
| - name: windows-latest-cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| os: windows-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| cc: cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| - name: windows-hunter-latest-cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| os: windows-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| cc: cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| - name: ubuntu-latest-clang++ | ||||||||||||||||||||||||||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: clang++ | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -35,18 +43,12 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: g++ | ||||||||||||||||||||||||||||||||||||||||||
| cc: gcc | ||||||||||||||||||||||||||||||||||||||||||
| - name: ubuntu-gcc-hunter | ||||||||||||||||||||||||||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| toolchain: ninja-gcc-cxx17-fpic | ||||||||||||||||||||||||||||||||||||||||||
| - name: macos-clang-hunter | ||||||||||||||||||||||||||||||||||||||||||
| os: macos-latest | ||||||||||||||||||||||||||||||||||||||||||
| toolchain: ninja-clang-cxx17-fpic | ||||||||||||||||||||||||||||||||||||||||||
| - name: windows-msvc-hunter | ||||||||||||||||||||||||||||||||||||||||||
| os: windows-latest | ||||||||||||||||||||||||||||||||||||||||||
| toolchain: ninja-vs-win64-cxx17 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||
| - name: ccache | ||||||||||||||||||||||||||||||||||||||||||
| uses: hendrikmuhs/ccache-action@v1.2 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v6 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+48
to
52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix YAML indentation under steps actionlint/yamllint report wrong indentation; steps’ items should be indented under the steps key. Apply: - - name: ccache
- uses: hendrikmuhs/ccache-action@v1.2
+ - name: ccache
+ uses: hendrikmuhs/ccache-action@v1.2
@@
- - uses: actions/checkout@v5
+ - uses: actions/checkout@v5📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.37.1)[warning] 48-48: wrong indentation: expected 6 but found 4 (indentation) [error] 50-50: trailing spaces (trailing-spaces) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
| submodules: true | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -55,56 +57,36 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
| - uses: ilammy/msvc-dev-cmd@v1 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Set Compiler Environment | ||||||||||||||||||||||||||||||||||||||||||
| if: "!endsWith(matrix.name, 'hunter')" | ||||||||||||||||||||||||||||||||||||||||||
| uses: lukka/set-shell-env@v1 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| CXX: ${{ matrix.cxx }} | ||||||||||||||||||||||||||||||||||||||||||
| CC: ${{ matrix.cc }} | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Set Compiler Environment for Hunter on Windows | ||||||||||||||||||||||||||||||||||||||||||
| if: startsWith(matrix.name, 'windows') && endsWith(matrix.name, 'hunter') | ||||||||||||||||||||||||||||||||||||||||||
| uses: lukka/set-shell-env@v1 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| VS160COMNTOOLS: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Checkout Hunter toolchains | ||||||||||||||||||||||||||||||||||||||||||
| if: endsWith(matrix.name, 'hunter') | ||||||||||||||||||||||||||||||||||||||||||
| uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| repository: cpp-pm/polly | ||||||||||||||||||||||||||||||||||||||||||
| path: cmake/polly | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Remove contrib directory for Hunter builds | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'hunter') | ||||||||||||||||||||||||||||||||||||||||||
| uses: JesseTG/rm@v1.0.3 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| path: contrib | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Cache DX SDK | ||||||||||||||||||||||||||||||||||||||||||
| id: dxcache | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'windows') | ||||||||||||||||||||||||||||||||||||||||||
| uses: actions/cache@v3 | ||||||||||||||||||||||||||||||||||||||||||
| uses: actions/cache@v5 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| path: '${{ github.workspace }}/DX_SDK' | ||||||||||||||||||||||||||||||||||||||||||
| key: ${{ runner.os }}-DX_SDK | ||||||||||||||||||||||||||||||||||||||||||
| restore-keys: | | ||||||||||||||||||||||||||||||||||||||||||
| ${{ runner.os }}-DX_SDK | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Download DXSetup | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'windows') && steps.dxcache.outputs.cache-hit != 'true' | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'windows-latest-cl.exe') && steps.dxcache.outputs.cache-hit != 'true' | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| curl -s -o DXSDK_Jun10.exe --location https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe | ||||||||||||||||||||||||||||||||||||||||||
| cmd.exe /c start /wait .\DXSDK_Jun10.exe /U /O /F /S /P "${{ github.workspace }}\DX_SDK" | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Set Windows specific CMake arguments | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'windows') | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'windows-latest-cl.exe') | ||||||||||||||||||||||||||||||||||||||||||
| id: windows_extra_cmake_args | ||||||||||||||||||||||||||||||||||||||||||
| run: echo "::set-output name=args::-DASSIMP_BUILD_ASSIMP_TOOLS=1 -DASSIMP_BUILD_ASSIMP_VIEW=1 -DASSIMP_BUILD_ZLIB=1" | ||||||||||||||||||||||||||||||||||||||||||
| run: echo ":set-output name=args::=-DASSIMP_BUILD_ASSIMP_TOOLS=1 -DASSIMP_BUILD_ASSIMP_VIEW=1" >> $GITHUB_OUTPUT | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Set Hunter specific CMake arguments | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'hunter') | ||||||||||||||||||||||||||||||||||||||||||
| id: hunter_extra_cmake_args | ||||||||||||||||||||||||||||||||||||||||||
| run: echo "::set-output name=args::-DBUILD_SHARED_LIBS=OFF -DASSIMP_HUNTER_ENABLED=ON -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/cmake/polly/${{ matrix.toolchain }}.cmake" | ||||||||||||||||||||||||||||||||||||||||||
| run: echo "args=-DBUILD_SHARED_LIBS=OFF -DASSIMP_HUNTER_ENABLED=ON -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/cmake/polly/${{ matrix.toolchain }}.cmake" >> $GITHUB_OUTPUT | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: configure and build | ||||||||||||||||||||||||||||||||||||||||||
| uses: lukka/run-cmake@v3 | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -121,14 +103,98 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
| - name: Exclude certain tests in Hunter specific builds | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'hunter') | ||||||||||||||||||||||||||||||||||||||||||
| id: hunter_extra_test_args | ||||||||||||||||||||||||||||||||||||||||||
| run: echo "::set-output name=args::--gtest_filter=-utOpenGEXImportExport.Importissue1340_EmptyCameraObject:utColladaZaeImportExport.importBlenFromFileTest" | ||||||||||||||||||||||||||||||||||||||||||
| run: echo "args=--gtest_filter=-utOpenGEXImportExport.Importissue1340_EmptyCameraObject:utColladaZaeImportExport.importBlenFromFileTest" >> $GITHUB_OUTPUT | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: test | ||||||||||||||||||||||||||||||||||||||||||
| run: cd build/bin && ./unit ${{ steps.hunter_extra_test_args.outputs.args }} | ||||||||||||||||||||||||||||||||||||||||||
| shell: bash | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/upload-artifact@v3 | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/upload-artifact@v7 | ||||||||||||||||||||||||||||||||||||||||||
| if: matrix.name == 'windows-msvc' | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| name: 'assimp-bins-${{ matrix.name }}-${{ github.sha }}' | ||||||||||||||||||||||||||||||||||||||||||
| path: build/bin | ||||||||||||||||||||||||||||||||||||||||||
| name: 'assimp-bins-${{ matrix.name }}' | ||||||||||||||||||||||||||||||||||||||||||
| path: build/bin/assimp*.exe | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - uses: marvinpinto/action-automatic-releases@latest | ||||||||||||||||||||||||||||||||||||||||||
| if: contains(matrix.name, 'windows-msvc-hunter') | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||||||||||||||||||||||||||||||||||||||||||
| automatic_release_tag: "master" | ||||||||||||||||||||||||||||||||||||||||||
| prerelease: true | ||||||||||||||||||||||||||||||||||||||||||
| title: "AutoRelease" | ||||||||||||||||||||||||||||||||||||||||||
| files: | | ||||||||||||||||||||||||||||||||||||||||||
| build/bin/assimp*.exe | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+118
to
+126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Deprecated/unsupported automatic releases action actionlint flags marvinpinto/action-automatic-releases@latest as too old to run. Prefer softprops/action-gh-release or stick with create-release/upload-release flow already present. Remove this step or pin to a supported version if you truly need it. Given you have dedicated create-release/upload-release jobs, removing this duplication is cleaner. 🧰 Tools🪛 actionlint (1.7.7)118-118: the runner of "marvinpinto/action-automatic-releases@latest" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| create-release: | ||||||||||||||||||||||||||||||||||||||||||
| needs: [build] | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| if: startsWith(github.ref, 'refs/tags/') | ||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||
| - id: create-release | ||||||||||||||||||||||||||||||||||||||||||
| uses: actions/create-release@v1 | ||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}' | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| tag_name: '${{github.ref}}' | ||||||||||||||||||||||||||||||||||||||||||
| release_name: 'Release ${{github.ref}}' | ||||||||||||||||||||||||||||||||||||||||||
| draft: false | ||||||||||||||||||||||||||||||||||||||||||
| prerelease: true | ||||||||||||||||||||||||||||||||||||||||||
| - run: | | ||||||||||||||||||||||||||||||||||||||||||
| echo '${{steps.create-release.outputs.upload_url}}' > release_upload_url.txt | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/upload-artifact@v7 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| name: create-release | ||||||||||||||||||||||||||||||||||||||||||
| path: release_upload_url.txt | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+128
to
+148
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Simplify release creation: drop create-release job and manual upload_url plumbing You mix actions/create-release, softprops/action-gh-release, and upload-release-asset. This is brittle and redundant. Use softprops with files in the upload job and remove this job entirely. - create-release:
- needs: [build]
- runs-on: ubuntu-latest
- if: startsWith(github.ref, 'refs/tags/')
- steps:
- - id: create-release
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'
- with:
- tag_name: '${{github.ref}}'
- release_name: 'Release ${{github.ref}}'
- draft: false
- prerelease: true
- - run: |
- echo '${{steps.create-release.outputs.upload_url}}' > release_upload_url.txt
- - uses: actions/upload-artifact@v4
- with:
- name: create-release
- path: release_upload_url.txt📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
| upload-release: | ||||||||||||||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||||||||||||||
| matrix: | ||||||||||||||||||||||||||||||||||||||||||
| name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter] | ||||||||||||||||||||||||||||||||||||||||||
| # For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux. | ||||||||||||||||||||||||||||||||||||||||||
| include: | ||||||||||||||||||||||||||||||||||||||||||
| - name: windows-latest-cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| os: windows-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| cc: cl.exe | ||||||||||||||||||||||||||||||||||||||||||
| - name: ubuntu-latest-clang++ | ||||||||||||||||||||||||||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: clang++ | ||||||||||||||||||||||||||||||||||||||||||
| cc: clang | ||||||||||||||||||||||||||||||||||||||||||
| - name: macos-latest-clang++ | ||||||||||||||||||||||||||||||||||||||||||
| os: macos-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: clang++ | ||||||||||||||||||||||||||||||||||||||||||
| cc: clang | ||||||||||||||||||||||||||||||||||||||||||
| - name: ubuntu-latest-g++ | ||||||||||||||||||||||||||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| cxx: g++ | ||||||||||||||||||||||||||||||||||||||||||
| cc: gcc | ||||||||||||||||||||||||||||||||||||||||||
| - name: ubuntu-gcc-hunter | ||||||||||||||||||||||||||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| toolchain: ninja-gcc-cxx17-fpic | ||||||||||||||||||||||||||||||||||||||||||
| - name: macos-clang-hunter | ||||||||||||||||||||||||||||||||||||||||||
| os: macos-latest | ||||||||||||||||||||||||||||||||||||||||||
| toolchain: ninja-clang-cxx17-fpic | ||||||||||||||||||||||||||||||||||||||||||
| - name: windows-msvc-hunter | ||||||||||||||||||||||||||||||||||||||||||
| os: windows-latest | ||||||||||||||||||||||||||||||||||||||||||
| toolchain: ninja-vs-win64-cxx17 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| needs: [create-release] | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| if: startsWith(github.ref, 'refs/tags/') | ||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||
| - uses: softprops/action-gh-release@v3 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| name: create-release | ||||||||||||||||||||||||||||||||||||||||||
| - id: upload-url | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| echo "url=$(cat create-release/release_upload_url.txt)" >> $GITHUB_OUTPUT | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/download-artifact@v8 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| name: 'assimp-bins-${{ matrix.name }}-${{ github.sha }}' | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/upload-release-asset@v1 | ||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}' | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| files: | | ||||||||||||||||||||||||||||||||||||||||||
| *.zip | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+149
to
+200
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix broken release asset upload flow: unaligned matrix, incorrect artifact handling, and misused actions. The upload-release job has several critical issues:
Recommended fix: Remove the create-release job, download build artifacts directly, and use softprops with the upload-release:
- strategy:
- matrix:
- name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter]
- # For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux.
- include:
- - name: windows-latest-cl.exe
- os: windows-latest
- cxx: cl.exe
- cc: cl.exe
- - name: ubuntu-latest-clang++
- os: ubuntu-latest
- cxx: clang++
- cc: clang
- - name: macos-latest-clang++
- os: macos-latest
- cxx: clang++
- cc: clang
- - name: ubuntu-latest-g++
- os: ubuntu-latest
- cxx: g++
- cc: gcc
- - name: ubuntu-gcc-hunter
- os: ubuntu-latest
- toolchain: ninja-gcc-cxx17-fpic
- - name: macos-clang-hunter
- os: macos-latest
- toolchain: ninja-clang-cxx17-fpic
- - name: windows-msvc-hunter
- os: windows-latest
- toolchain: ninja-vs-win64-cxx17
-
- needs: [create-release]
+ needs: [build]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- - uses: softprops/action-gh-release@v2
- with:
- name: create-release
- - id: upload-url
- run: |
- echo "url=$(cat create-release/release_upload_url.txt)" >> $GITHUB_OUTPUT
- - uses: actions/download-artifact@v6
+ - uses: actions/download-artifact@v4
with:
- name: 'assimp-bins-${{ matrix.name }}-${{ github.sha }}'
- - uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'
+ path: artifacts/
+ - uses: softprops/action-gh-release@v2
with:
+ files: artifacts/**/*.zip
+ fail_on_unmatched_files: trueThis simplifies the release flow to: download all build artifacts → upload to release using softprops (no manual URL plumbing needed). |
||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,52 @@ | ||||||||||||||||||
| name: Build and Publish Prebuilt Binaries | ||||||||||||||||||
|
|
||||||||||||||||||
| on: | ||||||||||||||||||
| release: | ||||||||||||||||||
| types: [created] | ||||||||||||||||||
|
|
||||||||||||||||||
| jobs: | ||||||||||||||||||
| build: | ||||||||||||||||||
| name: ${{ matrix.name }} | ||||||||||||||||||
| runs-on: ${{ matrix.os }} | ||||||||||||||||||
| strategy: | ||||||||||||||||||
| fail-fast: false | ||||||||||||||||||
| matrix: | ||||||||||||||||||
| include: | ||||||||||||||||||
| - name: windows-x64 | ||||||||||||||||||
| os: windows-latest | ||||||||||||||||||
| arch: x64 | ||||||||||||||||||
| - name: windows-x86 | ||||||||||||||||||
| os: windows-latest | ||||||||||||||||||
| arch: x86 | ||||||||||||||||||
| cmake_args: -A Win32 | ||||||||||||||||||
| - name: macos-x64 | ||||||||||||||||||
| os: macos-13 | ||||||||||||||||||
| - name: macos-arm64 | ||||||||||||||||||
| os: macos-latest | ||||||||||||||||||
| - name: linux-x64 | ||||||||||||||||||
| os: ubuntu-latest | ||||||||||||||||||
|
|
||||||||||||||||||
| steps: | ||||||||||||||||||
| - uses: actions/checkout@v6 | ||||||||||||||||||
|
|
||||||||||||||||||
| - uses: lukka/get-cmake@latest | ||||||||||||||||||
|
|
||||||||||||||||||
| - uses: ilammy/msvc-dev-cmd@v1 | ||||||||||||||||||
| with: | ||||||||||||||||||
| arch: ${{ matrix.arch }} | ||||||||||||||||||
|
|
||||||||||||||||||
|
Comment on lines
+34
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gate MSVC dev environment setup to Windows runners The ilammy/msvc-dev-cmd action only works on Windows. As written, this step will run on macOS/Linux and fail. Apply: - - uses: ilammy/msvc-dev-cmd@v1
+ - uses: ilammy/msvc-dev-cmd@v1
+ if: runner.os == 'Windows'
with:
arch: ${{ matrix.arch }}📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.37.1)[error] 37-37: trailing spaces (trailing-spaces) 🤖 Prompt for AI Agents |
||||||||||||||||||
| - name: Build | ||||||||||||||||||
| run: | | ||||||||||||||||||
| cmake -B build -S . ${{ matrix.cmake_args }} -DCMAKE_BUILD_TYPE=Release -DASSIMP_BUILD_TESTS=OFF | ||||||||||||||||||
| cmake --build build --config Release | ||||||||||||||||||
| - uses: TheDoctor0/zip-release@0.7.6 | ||||||||||||||||||
| with: | ||||||||||||||||||
| filename: ${{ matrix.name }}-${{ github.event.release.tag_name }}.zip | ||||||||||||||||||
| directory: build/bin/ | ||||||||||||||||||
|
|
||||||||||||||||||
| - uses: softprops/action-gh-release@v3 | ||||||||||||||||||
| with: | ||||||||||||||||||
| files: build/bin/${{ matrix.name }}-${{ github.event.release.tag_name }}.zip | ||||||||||||||||||
| append_body: true | ||||||||||||||||||
| fail_on_unmatched_files: true | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,51 @@ | ||||||
| name: Build Windows Installer | ||||||
| on: | ||||||
| push: | ||||||
| branches: [ master ] | ||||||
| pull_request: | ||||||
| branches: [ master ] | ||||||
| jobs: | ||||||
| build: | ||||||
| name: Build the Inno Setup Installer | ||||||
| runs-on: windows-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
| - uses: lukka/get-cmake@latest | ||||||
| - uses: ilammy/msvc-dev-cmd@v1 | ||||||
|
|
||||||
|
|
||||||
| - name: Cache DX SDK | ||||||
| id: dxcache | ||||||
| uses: actions/cache@v4 | ||||||
| with: | ||||||
| path: '${{ github.workspace }}/DX_SDK' | ||||||
| key: ${{ runner.os }}-DX_SDK | ||||||
| restore-keys: | | ||||||
| ${{ runner.os }}-DX_SDK | ||||||
|
|
||||||
| - name: Download DXSetup | ||||||
| run: | | ||||||
| curl -s -o DXSDK_Jun10.exe --location https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe | ||||||
| cmd.exe /c start /wait .\DXSDK_Jun10.exe /U /O /F /S /P "${{ github.workspace }}\DX_SDK" | ||||||
|
|
||||||
| - name: Set Windows specific CMake arguments | ||||||
| id: windows_extra_cmake_args | ||||||
| run: echo "::set-output name=args::-DASSIMP_BUILD_ASSIMP_TOOLS=1 -DASSIMP_BUILD_ASSIMP_VIEW=1 -DASSIMP_BUILD_ZLIB=1" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace deprecated set-output command. The -run: echo "::set-output name=args::-DASSIMP_BUILD_ASSIMP_TOOLS=1 -DASSIMP_BUILD_ASSIMP_VIEW=1 -DASSIMP_BUILD_ZLIB=1"
+run: echo "args=-DASSIMP_BUILD_ASSIMP_TOOLS=1 -DASSIMP_BUILD_ASSIMP_VIEW=1 -DASSIMP_BUILD_ZLIB=1" >> $GITHUB_OUTPUT📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| - name: configure and build | ||||||
| uses: lukka/run-cmake@v3 | ||||||
| env: | ||||||
| DXSDK_DIR: '${{ github.workspace }}/DX_SDK' | ||||||
|
|
||||||
| with: | ||||||
| cmakeListsOrSettingsJson: CMakeListsTxtAdvanced | ||||||
| cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||||||
| cmakeAppendedArgs: '-GNinja -DCMAKE_BUILD_TYPE=Release ${{ steps.windows_extra_cmake_args.outputs.args }} ${{ steps.hunter_extra_cmake_args.outputs.args }}' | ||||||
| buildWithCMakeArgs: '--parallel 24 -v' | ||||||
| buildDirectory: '${{ github.workspace }}/build/' | ||||||
|
|
||||||
| - name: Compile .ISS to .EXE Installer | ||||||
| uses: Minionguyjpro/Inno-Setup-Action@v1.2.5 | ||||||
| with: | ||||||
| path: packaging/windows-innosetup/script_x64.iss | ||||||
| options: /O+ | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,7 +14,7 @@ jobs: | |||||
| name: adress-sanitizer | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v3 | ||||||
| - uses: actions/checkout@v6 | ||||||
| - uses: lukka/get-cmake@latest | ||||||
| - uses: lukka/set-shell-env@v1 | ||||||
| with: | ||||||
|
|
@@ -38,15 +38,15 @@ jobs: | |||||
| name: undefined-behavior-sanitizer | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v3 | ||||||
| - uses: actions/checkout@v6 | ||||||
| - uses: lukka/get-cmake@latest | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainTrailing spaces flagged by yamllint YAMLlint reports trailing spaces on Line 42 and Line 47. Trim them to appease linters. Apply: - - uses: lukka/get-cmake@latest
+ - uses: lukka/get-cmake@latest
- - uses: lukka/set-shell-env@v1
+ - uses: lukka/set-shell-env@v1Run to verify: Also applies to: 47-47 🏁 Script executed: #!/bin/bash
# Show the exact lines with trailing spaces for confirmation
nl -ba .github/workflows/sanitizer.yml | sed -n '38,52p'
# Simple grep for trailing spaces
grep -nE ' +$' .github/workflows/sanitizer.yml || echo "No trailing spaces found."Length of output: 322 Trim trailing spaces in sanitizer.yml YAMLlint reports trailing spaces on multiple lines in • Lines with content:
Example diff: - - uses: lukka/get-cmake@latest
+ - uses: lukka/get-cmake@latest
- - uses: lukka/set-shell-env@v1
+ - uses: lukka/set-shell-env@v1Apply the same trimming to any other lines (including blank ones) flagged by 📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.37.1)[error] 42-42: trailing spaces (trailing-spaces) 🤖 Prompt for AI Agents |
||||||
| - uses: lukka/set-shell-env@v1 | ||||||
| with: | ||||||
| CXX: clang++ | ||||||
| CC: clang | ||||||
|
|
||||||
| - name: configure and build | ||||||
| uses: lukka/run-cmake@v2 | ||||||
| uses: lukka/run-cmake@v3 | ||||||
| with: | ||||||
| cmakeListsOrSettingsJson: CMakeListsTxtAdvanced | ||||||
| cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||||||
|
|
@@ -62,7 +62,7 @@ jobs: | |||||
| name: printf-sanitizer | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v3 | ||||||
| - uses: actions/checkout@v6 | ||||||
|
|
||||||
| - name: run scan_printf script | ||||||
| run: ./scripts/scan_printf.sh | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hunter Windows matrix entry missing toolchain; inconsistent naming
Also align all conditionals that check matrix.name accordingly.
📝 Committable suggestion
🤖 Prompt for AI Agents