Merge branch 'pa3-navaids' #5
Workflow file for this run
This file contains hidden or 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
| name: Build stb_stitch | |
| on: | |
| push: | |
| paths: | |
| - "plugins/sasl/data/modules/3rd-modules/stb_stitch/**" | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| working-directory: plugins/sasl/data/modules/3rd-modules/stb_stitch | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Build Windows x64 | |
| run: cl /LD /O2 /Fe:win64.dll stb_image_write_lib.c | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: stb_stitch-windows | |
| path: plugins/sasl/data/modules/3rd-modules/stb_stitch/win64.dll | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Linux x64 | |
| run: gcc -shared -fPIC -O2 -o lin64.so stb_image_write_lib.c | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: stb_stitch-linux | |
| path: plugins/sasl/data/modules/3rd-modules/stb_stitch/lin64.so | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build macOS Universal | |
| run: clang -shared -fPIC -O2 -arch x86_64 -arch arm64 -o mac.dylib stb_image_write_lib.c | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: stb_stitch-macos | |
| path: plugins/sasl/data/modules/3rd-modules/stb_stitch/mac.dylib | |
| package: | |
| needs: [build-windows, build-linux, build-macos] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: binaries | |
| - name: Collect binaries | |
| run: | | |
| mkdir -p stb_stitch | |
| cp binaries/stb_stitch-windows/win64.dll stb_stitch/ | |
| cp binaries/stb_stitch-linux/lin64.so stb_stitch/ | |
| cp binaries/stb_stitch-macos/mac.dylib stb_stitch/ | |
| working-directory: . | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: stb_stitch-all-platforms | |
| path: stb_stitch/ |