diff --git a/.github/workflows/test.yaml b/.github/workflows/main.yaml similarity index 93% rename from .github/workflows/test.yaml rename to .github/workflows/main.yaml index c85ba92..fa2e788 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/main.yaml @@ -45,14 +45,14 @@ jobs: - name: Install Dependencies (Linux) if: runner.os == 'Linux' run: sudo apt-get install -y shunit2 flex bison autoconf gperf - - name: Cache iverilog + - name: Cache iverilog (Linux) uses: actions/cache@v1 if: runner.os == 'Linux' with: path: ~/.local key: ${{ runner.OS }}-iverilog-10-3 restore-keys: ${{ runner.OS }}-iverilog-10-3 - - name: Install iverilog + - name: Install iverilog (Linux) if: runner.os == 'Linux' run: | if [ ! -e "$HOME/.local/bin/iverilog" ]; then @@ -70,10 +70,9 @@ jobs: with: name: ${{ runner.os }} path: bin - - name: Mark Binary Executable - run: chmod +x bin/sv2v - name: Test run: | + chmod +x bin/sv2v export PATH="$PATH:$HOME/.local/bin" make test @@ -91,10 +90,8 @@ jobs: name: ${{ matrix.name }} path: sv2v-${{ matrix.name }} - name: Mark Binary Executable - if: matrix.name == 'macOS' || matrix.name == 'Linux' run: chmod +x */sv2v* - name: Create ZIP - shell: bash run: zip -r sv2v-${{ matrix.name }} ./sv2v-${{ matrix.name }} - name: Upload Release Asset uses: actions/upload-release-asset@v1.0.1 diff --git a/.github/workflows/notice.yaml b/.github/workflows/notice.yaml index 2839c08..5405776 100644 --- a/.github/workflows/notice.yaml +++ b/.github/workflows/notice.yaml @@ -9,11 +9,10 @@ on: - NOTICE jobs: notice: - runs-on: macOS-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 - - name: Install Haskell Stack - run: brew install haskell-stack + - uses: mstksg/setup-stack@v2 - name: Regenerate NOTICE run: ./notice.sh > NOTICE - name: Validate NOTICE