automatic template update of System Management Bus (SMBus) Analyzer #24
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 | |
| on: | |
| push: | |
| branches: [master] | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| windows-x86_64: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| cmake -B ${{github.workspace}}/build -A x64 | |
| cmake --build ${{github.workspace}}/build --config Release | |
| - name: Upload windows x86_64 build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows_x86_64 | |
| path: ${{github.workspace}}/build/Analyzers/Release/*.dll | |
| windows-arm64: | |
| runs-on: windows-11-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| cmake -B ${{github.workspace}}/build -A ARM64 | |
| cmake --build ${{github.workspace}}/build --config Release | |
| - name: Upload windows arm64 build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows_arm64 | |
| path: ${{github.workspace}}/build/Analyzers/Release/*.dll | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| cmake -B ${{github.workspace}}/build/x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64 | |
| cmake --build ${{github.workspace}}/build/x86_64 | |
| cmake -B ${{github.workspace}}/build/arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 | |
| cmake --build ${{github.workspace}}/build/arm64 | |
| - name: Upload MacOS x86_64 build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos_x86_64 | |
| path: ${{github.workspace}}/build/x86_64/Analyzers/*.so | |
| - name: Upload MacOS arm64 build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos_arm64 | |
| path: ${{github.workspace}}/build/arm64/Analyzers/*.so | |
| linux-x86_64: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Pull pre-built builder image | |
| run: docker pull ghcr.io/saleae/analyzer-build-image:linux-x86_64 | |
| - name: Build inside container | |
| run: | | |
| docker run --rm \ | |
| -v ${{ github.workspace }}:/app \ | |
| -w /app \ | |
| ghcr.io/saleae/analyzer-build-image:linux-x86_64 \ | |
| bash -c 'cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build' | |
| - name: Upload Linux x86_64 build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux_x86_64 | |
| path: ${{github.workspace}}/build/Analyzers/*.so | |
| linux-arm64: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Pull pre-built builder image | |
| run: docker pull ghcr.io/saleae/analyzer-build-image:linux-arm64 | |
| - name: Build inside container | |
| run: | | |
| docker run --rm \ | |
| -v ${{ github.workspace }}:/app \ | |
| -w /app \ | |
| ghcr.io/saleae/analyzer-build-image:linux-arm64 \ | |
| bash -c 'cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build' | |
| - name: Upload Linux arm64 build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux_arm64 | |
| path: ${{github.workspace}}/build/Analyzers/*.so | |
| publish: | |
| needs: [windows-x86_64, windows-arm64, macos, linux-x86_64, linux-arm64] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: download individual builds | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: ${{github.workspace}}/artifacts | |
| - name: zip | |
| run: | | |
| cd ${{github.workspace}}/artifacts | |
| zip -r ${{github.workspace}}/analyzer.zip . | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: all-platforms | |
| path: ${{github.workspace}}/artifacts/** | |
| - name: create release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: ${{github.workspace}}/analyzer.zip |