目的是利用GitHub Actions在windows服务器上下载HDF5-1.12.1安装包并安装,最后修改系统路径,并配置HDF5_DIR环境变量。 从Github服务器上下载源码: 目录结构如下: 具体代码: GitHub Actions文件:windows.yml # This is a basic workflow to help you get started with Actions name: OneFLOW_Windows_HDF5_CI # Contr...
[ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: build: name: "Windows OneFLOW MPI Run" runs-on: windows-latest steps: - uses: actions/checkout...
# 工作流的执行时机,可以设定为定时执行,每次push后执行,手动执行等on:# workflow_dispatch为在Github仓库的Actions面板中手动执行workflow_dispatch:# 工作/任务,这里的工作是可以并行的。jobs:# 工作的名称“编译windows版”buildwin:# 运行的操作系统 windows server2022runs-on:windows-2022# 步骤steps:# 使用预制...
name: MySQL for GitHub Actions on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: windows-latest steps: - uses: actions/checkout@v1 - uses: azure/login@v1 with: creds: ${{ secrets.AZURE_CREDENTIALS }} 使用Azure MySQL 的「部署」動作來連線到您的...
不过,让我们来研究一下它是如何检查目标代码的:以“uses”开头的一行会将代码通过“actions/checkout”操作,从GitHub存储库获取到,并推送给运行着工作流的服务器。如果您仔细阅读其源代码,就会意识到:盲目地相信其所有行为是极其风险的。各种第三方action会与您的代码进行交互,并且可能在服务器上运行。对此,我们往往...
jobs: builds: runs-on: windows-latest # alternate runner OS is: ubuntu-latest steps: - name: Install Power Platform Tools uses: microsoft/powerplatform-actions/actions-install@v1 - name: Export Solution uses: microsoft/powerplatform-actions/export-solution@v1 with: environment-url: 'https://...
YAML jobs: powershell-example: runs-on: windows-latest env: MY_NAME: "Mona The Octocat" steps: - name: powershell-version run: Write-Output "::add-mask::$env:MY_NAME"停止和启动工作流程命令停止处理任何工作流程命令。 此特殊命令可让您记录任何内容而不会意外运行工作流程命令。 例如,您...
(6)jobs.<job_id>.runs-on runs-on字段指定运行所需要的虚拟机环境。它是必填字段。目前可用的虚拟机如下。 ubuntu-latest,ubuntu-18.04或ubuntu-16.04 windows-latest,windows-2019或windows-2016 macOS-latest或macOS-10.14 下面代码指定虚拟机环境为ubuntu-18.04。
name:My GitHub Actionson:watch:types:[started]jobs:first_job:name:My first job timeout-minutes:30runs-on:${{matrix.os}}strategy:matrix:os:[windows-2016,ubuntu-18.04]node:[6,8,10]include:# includes anewvariableofnpmwitha valueof2forthe matrix leg matching the os and version-os:windows-...
For more information on actions, seeSharing automations. Runners Arunneris a server that runs your workflows when they're triggered. Each runner can run a singlejobat a time. GitHub provides Ubuntu Linux, Microsoft Windows, and macOS runners to run yourworkflows. Each workflow run executes in ...