fix syntax

This commit is contained in:
wangyunlai
2023-07-19 10:27:39 +08:00
committed by GitHub
parent e24c943f42
commit 836ab515f3

View File

@ -10,7 +10,7 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
image: ["ubuntu:20.04", "centos:7"] image: ['ubuntu:20.04', 'centos:7']
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
container: ${{ matrix.image }} container: ${{ matrix.image }}
steps: steps:
@ -18,8 +18,8 @@ jobs:
- name: Install ubuntu environment - name: Install ubuntu environment
shell: bash shell: bash
if: startsWith(${{ matrix.image }}, 'ubuntu') if: ${{ startsWith(matrix.image, 'ubuntu') }}
run: apt-get install -y git wget rpm rpm2cpio cpio make build-essential binutils m4 libtool-bin run: apt install -y git wget rpm rpm2cpio cpio make build-essential binutils m4 libtool-bin
- name: Install centos environment - name: Install centos environment
shell: bash shell: bash