updated workflow file for artifacts #9
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: C/C++ CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: build macos libraries | |
| run: ./build.sh macos | |
| - name: upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tinyhook-osx-universal | |
| path: | | |
| libtinyhook.a | |
| libtinyhook.dylib | |
| include/tinyhook.h | |
| compression-level: 9 | |
| - name: build ios libraries | |
| run: ./build.sh ios | |
| - name: upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tinyhook-ios | |
| path: | | |
| libtinyhook.a | |
| libtinyhook.dylib | |
| include/tinyhook.h | |
| compression-level: 9 | |
| test: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: macos-13 | |
| arch: x86_64 | |
| - os: macos-latest | |
| arch: arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: run test | |
| run: make test |