maybe with bash #11
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
| on: push | |
| jobs: | |
| build-job: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: [x86_64, arm64] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Get Opam | |
| run: | | |
| sudo bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh)" | |
| opam init | |
| eval $(opam env) | |
| - name: Get Dune | |
| run: | |
| opam install dune | |
| - name: build | |
| run: | | |
| eval $(opam env) | |
| dune build | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: taint | |
| path: _build/default/bin/main.exe |