腿部青筋明显是什么原因| 康复治疗学是做什么的| 肺部增殖灶是什么意思| 派出所传唤是什么意思| 咳嗽痰中带血是什么原因| 知柏地黄丸治什么病| 喝什么茶| 答辩是什么| 杞人忧天是什么故事| 什么是飞蚊症| c1能开什么车| 血压低会出现什么症状| 发票抬头写什么| 动物园里有什么动物| 手足口是什么引起的| 手心发热什么原因| 蝉又叫什么名字| 憋气2分钟算什么水平| 香菜什么时候种植最好| 鸡翅木是什么木头| mys是什么意思| 出岫是什么意思| 木羽念什么| 咳嗽吐血是什么原因| 反流性食管炎不能吃什么食物| 梦见自己生了个女孩是什么意思| 水指什么生肖| 挚肘是什么意思| 吃什么补肾最快最好| 去草原穿什么衣服拍照好看| 长期喝蜂蜜有什么好处| 冰箱买什么牌子的好| 炸酥肉用什么粉| rose是什么意思| 西瓜什么时候传入中国| 腰痛吃什么药| 河里的贝壳叫什么| 白脉病西医叫什么病| 玻璃体混浊用什么药| 肛门坠胀吃什么药最好| 为什么吃火龙果会拉肚子| 芒果鱼是什么鱼| 单核细胞偏高是什么意思| 发热门诊属于什么科| 血小板计数偏高是什么原因| e抗原阳性是什么意思| 盆腔静脉石是什么意思| 两女一杯什么意思| mcm中文叫什么牌子| 怀孕查雌二醇什么作用| 脑梗吃什么中药| b2c什么意思| 岩茶是什么茶类| 耳塞戴久了有什么危害| 猫咪的胡须有什么作用| 水痘是由什么引起的| 什么值得买官网| 人为什么会长痣| 单方精油和复方精油有什么区别| 喝酒后肚子疼什么原因| 月经结束一周后又出血是什么原因| 龚自珍是什么朝代的| 12月出生是什么星座| 牛仔蓝是什么颜色| 为什么房间有蟑螂| 娃娃鱼用什么呼吸| rebecca什么意思| 射手男喜欢什么样的女生| 什么叫造影| 九月七日是什么星座| 为什么不建议小孩打流感疫苗| 睡觉经常做梦是什么原因| 甲醛是什么气味| 黄豆加什么打豆浆好喝又营养| 92年1月属什么生肖| 见色起意是什么意思| 为什么马卡龙那么贵| 1978属什么| 强直是什么意思| 徐五行属什么| dido是什么牌子| 眼压高有什么症状| 太阳是一颗什么星| 龋坏是什么意思| 唯粉是什么意思| 男同叫什么| 四月十八是什么星座| 结晶是什么| 风热证是什么意思| 人为什么会晕车| 眼睛模糊吃什么药| 普乐安片治什么病| 补钙有什么好处| 脸基尼是什么意思| gc是什么意思| 鱼和熊掌不可兼得什么意思| 工匠精神的核心是什么| 熊猫为什么被称为国宝| 淋巴细胞数高说明什么| 怨天尤人是什么意思| 婕妤是什么意思| 圈层是什么意思| 一月7日是什么星座| 一句没事代表什么意思| broom是什么意思| 什么食物含有维生素b| 独家记忆是什么意思| 常吃山药有什么好处和坏处| 小龙虾什么季节| 四不放过是什么| 可喜可贺是什么意思| 什么是前奶什么是后奶| 高筋面粉是什么意思| 刮痧用的油是什么油| 省政协常委是什么级别| 百米12秒什么水平| 藏青和藏蓝有什么区别| 补气血什么季节补最好| 女龙配什么属相最好| 榴莲和什么不能一起吃| 家母是什么意思| 梦见梅花鹿是什么预兆| 臭虫怕什么东西| 感统训练是什么| 肺结核吃什么好| 篇幅是什么意思| 什么地舞动| 人为什么会得阑尾炎| 血压偏低是什么原因造成的| 月经期不能吃什么| 出家当尼姑需要什么条件| 水银是什么| 清凉补是什么| 2段和3段奶粉有什么区别| 肺部ct应该挂什么科| 什么时候测量血压最准确| 九月底是什么星座| 一字马是什么意思| 小孩手足口病吃什么药| 吃什么化痰| 两肺少许纤维灶是什么意思| rimowa是什么品牌| 胪是什么意思| 生猴子是什么意思| 回族人为什么不吃猪肉| 好吃懒做是什么生肖| 尿检弱阳性是什么意思| 叶黄素有什么功效| 为什么会眼压高| 恭喜什么意思| 阴道流黄水是什么原因| 医助是什么工作| 什么的钩住| 痔疮复发的原因是什么| 婴儿胎毛什么时候剃最好| 蝙蝠进屋有什么预兆| 秘辛是什么意思| 稠的反义词是什么| 角瓜是什么| 贫血的人吃什么水果| 牛顿发明了什么| 蛋白质是什么| 笑字五行属什么| 鲁迅是什么家| 天神是什么意思| 鼻窦炎有什么特效药| 什么食物防辐射| 兰精莫代尔是什么面料| 灼是什么意思| 梦见芹菜是什么意思| 飞蚊症用什么滴眼液| 什么是传染病| 吃米饭配什么菜好吃| 婴儿吐泡泡是什么原因| 雪莲果什么时候成熟| 怀孕喝什么牛奶好| 什么是繁体字| 什么叫试管婴儿| 尿酸偏高有什么危害| 36是什么生肖| 生菜有什么营养价值| 孕中期宫缩是什么感觉| twitter是什么| 为什么放屁特别臭| 做腋臭手术挂什么科室| 痤疮是什么东西| 检查肚子挂什么科| 收尿干什么用的| hpv检查是什么| 穿刺活检能查出肿瘤是什么性质吗| 心肌桥是什么意思| 罗可以组什么词| 三大精神是什么| 血小板低有什么危险| 鼻渊是什么意思| 4月18号是什么星座| 挂急诊和门诊有什么区别| 宝宝什么时候添加辅食最好| 什么药和酒一起吃必死| 胆囊结石不能吃什么| 榴莲是什么季节的水果| 什么笑什么笑| 双子座男生喜欢什么样的女生| 外阴瘙痒抹什么药| 术后吃什么消炎药| 铁公鸡是什么意思| 头陀是什么意思| 气性大是什么意思| 云南属于什么地区| 手臂长斑是什么原因| 下巴的痣代表什么| 什么的滋味| 虬角为什么要染成绿色| 叒字什么意思| 为什么屁股上会长痘| 近视眼睛什么牌子好| 黄色配什么颜色好看| 减肥吃什么主食比较好| 后背酸疼是什么原因| 小孩子发烧手脚冰凉是什么原因| 费力不讨好是什么生肖| 男人脖子后面有痣代表什么| hl是什么意思| 上位是什么意思| 邹的左边读什么| 暴殄天物是什么生肖| 为什么要长智齿| 尿液粉红色是什么原因| tc版是什么意思| 灵芝搭配什么煲汤最好| 什么变什么化| 孩子肚子有虫子有什么症状| 福建有什么好吃的| 什么什么为难| 外阴瘙痒是什么原因| 冰镇情人果是什么水果| 什么是流食| 阳强易举是什么意思| 黑龙江有什么特产| 桐字属于五行属什么| 销魂什么意思| 胳膊疼挂什么科| 疱疹用什么药膏最有效| 手臂内侧是什么经络| 少校什么级别| 孩子呼吸道感染吃什么药效果最好| 生殖器疱疹吃什么药| 吃什么利尿最快去腹水的| 做梦结婚是什么征兆| 什么叫寓言故事| 皂角是什么| 没有润滑剂可以用什么代替| 宫颈糜烂用什么药最好| 今年21岁属什么生肖| 肺型p波是什么意思| 什么是兼职| 男人小腹疼痛是什么原因| 女性掉发严重是什么原因| 什么解酒最快| 喝什么解酒快| 检查糖尿病挂什么科| 子宫饱满是什么意思| nmr是什么意思| 绿松石有什么功效| 百度
Skip to main content

北京4月上半月商品房网签骤减 业主主动调低报价

百度 他介绍,纳米结构材料将提升现有材料的性能,比如,航空航天装备制造业对材料轻质高强提出了很高需求,通过纳米技术可以大幅度提高钢铁和铝合金的强度,从而实现减重;同时,材料科学“隐形”于人们日常生活的方方面面,如手机的更新换代就与材料的进步息息相关……  扎根东北的卢柯,十分关注当地的振兴发展。

Create a matrix to define variations for each job.

About matrix strategies

A matrix strategy lets you use variables in a single job definition to automatically create multiple job runs that are based on the combinations of the variables. For example, you can use a matrix strategy to test your code in multiple versions of a language or on multiple operating systems.

Adding a matrix strategy to your workflow job

Use jobs.<job_id>.strategy.matrix to define a matrix of different job configurations. Within your matrix, define one or more variables followed by an array of values. For example, the following matrix has a variable called version with the value [10, 12, 14] and a variable called os with the value [ubuntu-latest, windows-latest]:

jobs:
  example_matrix:
    strategy:
      matrix:
        version: [10, 12, 14]
        os: [ubuntu-latest, windows-latest]

A job will run for each possible combination of the variables. In this example, the workflow will run six jobs, one for each combination of the os and version variables.

The above matrix will create the jobs in the following order.

  • {version: 10, os: ubuntu-latest}
  • {version: 10, os: windows-latest}
  • {version: 12, os: ubuntu-latest}
  • {version: 12, os: windows-latest}
  • {version: 14, os: ubuntu-latest}
  • {version: 14, os: windows-latest}

For reference information and examples, see Workflow syntax for GitHub Actions.

Using contexts to create matrices

To create matrices with information about workflow runs, variables, runner environments, jobs, and steps, access contexts using the ${{ <context> }} expression syntax. For more information about contexts, see Contexts reference.

For example, the following workflow triggers on the repository_dispatch event and uses information from the event payload to build the matrix. When a repository dispatch event is created with a payload like the one below, the matrix version variable will have a value of [12, 14, 16]. For more information about the repository_dispatch trigger, see Events that trigger workflows.

{
  "event_type": "test",
  "client_payload": {
    "versions": [12, 14, 16]
  }
}
on:
  repository_dispatch:
    types:
      - test

jobs:
  example_matrix:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        version: ${{ github.event.client_payload.versions }}
    steps:
      - uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.version }}

Expanding or adding matrix configurations

To expand existing matrix configurations or to add new configurations, use jobs.<job_id>.strategy.matrix.include. The value of include is a list of objects.

For example, consider the following matrix.

strategy:
  matrix:
    fruit: [apple, pear]
    animal: [cat, dog]
    include:
      - color: green
      - color: pink
        animal: cat
      - fruit: apple
        shape: circle
      - fruit: banana
      - fruit: banana
        animal: cat

This will result in six jobs with the following matrix combinations.

  • {fruit: apple, animal: cat, color: pink, shape: circle}
  • {fruit: apple, animal: dog, color: green, shape: circle}
  • {fruit: pear, animal: cat, color: pink}
  • {fruit: pear, animal: dog, color: green}
  • {fruit: banana}
  • {fruit: banana, animal: cat}

Each include entry was applied in the following ways.

  • {color: green} is added to all of the original matrix combinations because it can be added without overwriting any part of the original combinations.
  • {color: pink, animal: cat} adds color:pink only to the original matrix combinations that include animal: cat. This overwrites the color: green that was added by the previous include entry.
  • {fruit: apple, shape: circle} adds shape: circle only to the original matrix combinations that include fruit: apple.
  • {fruit: banana} cannot be added to any original matrix combination without overwriting a value, so it is added as an additional matrix combination.
  • {fruit: banana, animal: cat} cannot be added to any original matrix combination without overwriting a value, so it is added as an additional matrix combination. It does not add to the {fruit: banana} matrix combination because that combination was not one of the original matrix combinations.

For reference and example configurations, see Workflow syntax for GitHub Actions.

Excluding matrix configurations

To remove specific configurations defined in the matrix, use jobs.<job_id>.strategy.matrix.exclude.

For example, the following workflow will run nine jobs: one job for each of the 12 configurations, minus the one excluded job that matches {os: macos-latest, version: 12, environment: production}, and the two excluded jobs that match {os: windows-latest, version: 16}.

strategy:
  matrix:
    os: [macos-latest, windows-latest]
    version: [12, 14, 16]
    environment: [staging, production]
    exclude:
      - os: macos-latest
        version: 12
        environment: production
      - os: windows-latest
        version: 16
runs-on: ${{ matrix.os }}

For reference information, see Workflow syntax for GitHub Actions

Using an output to define two matrices

You can use the output from one job to define matrices for multiple jobs.

For example, the following workflow demonstrates how to define a matrix of values in one job, use that matrix in a second jobs to produce artifacts, and then consume those artifacts in a third job. Each artifact is associated with a value from the matrix.

YAML
name: shared matrix
on:
  push:
  workflow_dispatch:

jobs:
  define-matrix:
    runs-on: ubuntu-latest

    outputs:
      colors: ${{ steps.colors.outputs.colors }}

    steps:
      - name: Define Colors
        id: colors
        run: |
          echo 'colors=["red", "green", "blue"]' >> "$GITHUB_OUTPUT"

  produce-artifacts:
    runs-on: ubuntu-latest
    needs: define-matrix
    strategy:
      matrix:
        color: ${{ fromJSON(needs.define-matrix.outputs.colors) }}

    steps:
      - name: Define Color
        env:
          color: ${{ matrix.color }}
        run: |
          echo "$color" > color
      - name: Produce Artifact
        uses: actions/upload-artifact@v4
        with:
          name: ${{ matrix.color }}
          path: color

  consume-artifacts:
    runs-on: ubuntu-latest
    needs:
    - define-matrix
    - produce-artifacts
    strategy:
      matrix:
        color: ${{ fromJSON(needs.define-matrix.outputs.colors) }}

    steps:
    - name: Retrieve Artifact
      uses: actions/download-artifact@v4
      with:
        name: ${{ matrix.color }}

    - name: Report Color
      run: |
        cat color

Handling failures

To control how job failures are handled, use jobs.<job_id>.strategy.fail-fast and jobs.<job_id>.continue-on-error.

You can use jobs.<job_id>.strategy.fail-fast and jobs.<job_id>.continue-on-error together. For example, the following workflow will start four jobs. For each job, continue-on-error is determined by the value of matrix.experimental. If any of the jobs with continue-on-error: false fail, all jobs that are in progress or queued will be cancelled. If the job with continue-on-error: true fails, the other jobs will not be affected.

jobs:
  test:
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: true
      matrix:
        version: [6, 7, 8]
        experimental: [false]
        include:
          - version: 9
            experimental: true

For reference information see jobs.<job_id>.strategy.fail-fast and jobs.<job_id>.continue-on-error.

Defining the maximum number of concurrent jobs

To set the maximum number of jobs that can run simultaneously when using a matrix job strategy, use jobs.<job_id>.strategy.max-parallel.

For example, the following workflow will run a maximum of two jobs at a time, even if there are runners available to run all six jobs at once.

jobs:
  example_matrix:
    strategy:
      max-parallel: 2
      matrix:
        version: [10, 12, 14]
        os: [ubuntu-latest, windows-latest]

For reference information, see Workflow syntax for GitHub Actions.

cosplay是什么意思 培坤丸有什么作用功效 皮肤痒用什么药最好 腹部b超可以检查什么 子宫形态失常是什么意思
暗渡陈仓什么意思 谷丙转氨酶偏高吃什么好 一什么小狗 技校算什么学历 做牛排需要什么调料
发烧吃什么水果好 洗冷水澡有什么好处 属龙的五行属性是什么 44岁属什么 不凝血是什么原因
2021年是什么年 宫腔积液是什么意思 小舌头有什么用 什么其谈 草字头见念什么
豆是什么结构hcv8jop7ns5r.cn 心脏长在什么位置hcv9jop8ns3r.cn 妊娠纹什么时候开始长hcv9jop1ns4r.cn 8月26日是什么星座hcv9jop7ns2r.cn 有生之年什么意思adwl56.com
胆囊是什么wuhaiwuya.com 大姨妈来吃什么好hcv7jop6ns5r.cn 怀孕前三个月需要注意什么hcv8jop3ns1r.cn 头发硬是什么原因hcv8jop4ns4r.cn 怀孕吃什么会流产hcv7jop5ns3r.cn
中药和中成药有什么区别hcv7jop7ns0r.cn 慢性咽炎有什么症状hcv8jop2ns7r.cn 受精卵着床有什么反应hcv9jop1ns8r.cn 动脉导管未闭是什么意思hcv7jop6ns5r.cn 痔疮是什么东西hcv8jop7ns3r.cn
汗疱疹是什么hcv9jop2ns9r.cn 免疫五项能查出什么病jasonfriends.com Valentino什么牌子hcv8jop6ns5r.cn 什么什么之财hcv8jop9ns4r.cn 八面玲珑什么意思hcv9jop0ns8r.cn
百度