try another path #12
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: Run simulate-gate check | |
| on: | |
| push: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 8 1 * *' | |
| jobs: | |
| simulate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get runner UID and GID | |
| id: id | |
| run: | | |
| echo "UID=$(id -u)" >> $GITHUB_OUTPUT | |
| echo "GID=$(id -g)" >> $GITHUB_OUTPUT | |
| - name: Checkout your repository | |
| uses: actions/checkout@v4 | |
| - name: Clone simulate-gate repo | |
| run: git clone --branch nand-ci https://github.com/mattvenn/simulate-gate.git | |
| - name: Run make check inside Docker with bashrc sourced | |
| env: | |
| UID: ${{ steps.id.outputs.UID }} | |
| GID: ${{ steps.id.outputs.GID }} | |
| run: | | |
| docker run --rm \ | |
| --user $UID:$GID \ | |
| --entrypoint bash \ | |
| -v ${{ github.workspace }}/simulate-gate:/work \ | |
| -w /work \ | |
| hpretl/iic-osic-tools \ | |
| -c "source ~/.bashrc; make check" | |
| - name: Upload nand.svg as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nand-image | |
| path: simulate-gate/nand.svg |