diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9108c0..50ecff7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,14 +2,18 @@ name: CI pipeline on: push -env: - ZEEK_LTS: -lts - ZEEK_VERSION: 6.0.2-0 - jobs: - test_ubuntu_latest: + test_ubuntu_22: runs-on: ubuntu-22.04 + strategy: + matrix: + zeek: [{version: 6.0.2-0, tag: -lts}] + + env: + ZEEK_VERSION: ${{ matrix.zeek.version }} + ZEEK_TAG: ${{ matrix.zeek.tag }} + steps: - name: Prepare run: | @@ -19,8 +23,8 @@ jobs: - name: Install Zeek run: | - (cd /tmp && curl -L -O https://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/amd64/zeek${ZEEK_LTS}_${ZEEK_VERSION}_amd64.deb) - sudo apt install -y /tmp/zeek${ZEEK_LTS}-core_${ZEEK_VERSION}_amd64.deb + (cd /tmp && curl -L -O https://download.zeek.org/binary-packages/xUbuntu_22.04/amd64/zeek${ZEEK_TAG}-core_${ZEEK_VERSION}_amd64.deb) + sudo apt install -y /tmp/zeek${ZEEK_TAG}-core_${ZEEK_VERSION}_amd64.deb echo "/opt/zeek/bin:$PATH" >> $GITHUB_PATH - name: Checkout repository @@ -47,7 +51,7 @@ jobs: publish_release: runs-on: ubuntu-22.04 if: startsWith(github.ref, 'refs/tags/v') - needs: [test_ubuntu_latest] + needs: [test_ubuntu_22] steps: - name: Checkout code uses: actions/checkout@v2