Update ubuntu.yml #3
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: ubuntu_ne | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: make | |
| run: make | |
| - name: install check | |
| run: sudo apt install check | |
| - name: run tests | |
| run: make test | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: build-artifacts | |
| path: ./build # Replace ./build with the directory or file to upload | |
| build-android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: nttld/setup-ndk@v1 | |
| with: | |
| ndk-version: r21e | |
| - name: make | |
| run: make cross-android | |
| - name: Upload Android Build Artifact | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: android-build-artifacts | |
| path: ./build/android # Replace ./build/android with the directory or file to upload |