|
59 | 59 |
|
60 | 60 | steps: |
61 | 61 | - name: Checkout project |
62 | | - uses: actions/checkout@v3.3.0 |
| 62 | + uses: actions/checkout@v4.1.1 |
63 | 63 | with: |
64 | 64 | submodules: recursive |
65 | 65 |
|
|
71 | 71 | continue-on-error: true |
72 | 72 |
|
73 | 73 | - name: Set up Python |
74 | | - uses: actions/setup-python@v4 |
| 74 | + uses: actions/setup-python@v5.0.0 |
75 | 75 | with: |
76 | 76 | python-version: "3.x" |
77 | 77 |
|
@@ -105,33 +105,45 @@ jobs: |
105 | 105 | Remove-Item bin/* -Include *.exp,*.pdb -Force |
106 | 106 |
|
107 | 107 | - name: Upload library artifact |
108 | | - uses: actions/upload-artifact@v3 |
| 108 | + uses: actions/upload-artifact@v4.3.0 |
109 | 109 | with: |
110 | | - name: ${{ github.event.repository.name }}-library |
| 110 | + name: ${{ github.event.repository.name }}-${{ matrix.identifier }}-library |
111 | 111 | path: | |
112 | 112 | ${{ github.workspace }}/bin/libopenvic-simulation.* |
113 | 113 |
|
114 | 114 | - name: Upload executable artifact |
115 | | - uses: actions/upload-artifact@v3 |
| 115 | + uses: actions/upload-artifact@v4.3.0 |
116 | 116 | with: |
117 | | - name: ${{ github.event.repository.name }}-executable |
| 117 | + name: ${{ github.event.repository.name }}-${{ matrix.identifier }}-executable |
118 | 118 | path: | |
119 | 119 | ${{ github.workspace }}/bin/openvic-simulation.headless.* |
120 | 120 |
|
121 | 121 | - name: Archive Release |
122 | | - uses: thedoctor0/[email protected].1 |
| 122 | + uses: thedoctor0/[email protected].6 |
123 | 123 | with: |
124 | 124 | type: "zip" |
125 | 125 | filename: "../../../libopenvic-simulation.${{ matrix.platform }}.${{ matrix.arch }}.zip" |
126 | 126 | directory: "${{ github.workspace }}/bin/" |
127 | 127 | if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |
128 | 128 |
|
129 | 129 | - name: Create and upload asset |
130 | | - uses: ncipollo/release-action@v1 |
| 130 | + uses: ncipollo/release-action@v1.13.0 |
131 | 131 | with: |
132 | 132 | allowUpdates: true |
133 | 133 | artifacts: "libopenvic-simulation.${{ matrix.platform }}.${{ matrix.arch }}.zip" |
134 | 134 | omitNameDuringUpdate: true |
135 | 135 | omitBodyDuringUpdate: true |
136 | 136 | token: ${{ secrets.GITHUB_TOKEN }} |
137 | 137 | if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |
| 138 | + |
| 139 | + merge-library-files: |
| 140 | + runs-on: ubuntu-latest |
| 141 | + needs: build |
| 142 | + name: 📚 Merge Library Files |
| 143 | + steps: |
| 144 | + - name: Merge Artifacts |
| 145 | + uses: actions/upload-artifact/[email protected] |
| 146 | + with: |
| 147 | + delete-merged: true |
| 148 | + name: ${{ github.event.repository.name }}-library |
| 149 | + pattern: ${{ github.event.repository.name }}-*-library |
0 commit comments