From 7ad6bd72e5ce39c7d93f8ad34dcc7d2e2aea8a14 Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Tue, 30 Jan 2024 16:18:08 +0800 Subject: [PATCH] optimized Signed-off-by: leleliu008 --- .github/workflows/centos.yml | 11 +---------- .github/workflows/opensuse-leap.yml | 2 +- .github/workflows/wsl.yml | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/centos.yml b/.github/workflows/centos.yml index 199fb41..823389c 100644 --- a/.github/workflows/centos.yml +++ b/.github/workflows/centos.yml @@ -9,25 +9,16 @@ on: jobs: test: runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - tag: ['7.5.1804', '8.4.2105'] - container: centos:${{ matrix.tag }} + container: centos:8.4.2105 steps: - - run: yum -y update && yum -y install curl gcc-c++ git - if: ${{ matrix.tag == '7.5.1804' }} - # https://stackoverflow.com/questions/70926799/centos-through-vm-no-urls-in-mirrorlist - run: | sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* dnf -y update dnf -y install curl gcc-c++ git - if: ${{ matrix.tag == '8.4.2105' }} - uses: actions/checkout@v4 diff --git a/.github/workflows/opensuse-leap.yml b/.github/workflows/opensuse-leap.yml index 0d6d827..1bcc0d4 100644 --- a/.github/workflows/opensuse-leap.yml +++ b/.github/workflows/opensuse-leap.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - tag: [15.1, 15.2, 15.3, 15.4] + tag: [15.3, 15.4] container: opensuse/leap:${{ matrix.tag }} diff --git a/.github/workflows/wsl.yml b/.github/workflows/wsl.yml index 8213172..712681c 100644 --- a/.github/workflows/wsl.yml +++ b/.github/workflows/wsl.yml @@ -21,7 +21,7 @@ jobs: steps: # https://github.com/marketplace/actions/setup-wsl - - uses: Vampire/setup-wsl@v2 + - uses: Vampire/setup-wsl@v2.0.2 with: distribution: ${{ matrix.distribution }}