Github操作:如何设置pypy环境?

时间:2020-03-04 10:18:12

标签: github mingw github-actions

我想用pypy解释器运行脚本,并用minGW将一些C ++代码构建到二进制文件中。根据官方文档https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md,当我启动Windows服务器工作流时,应同时安装pypy和minGW。

但是我找不到pypy或minGW(通过命令gcc -vpypy -V)。 我该怎么办?

1 个答案:

答案 0 :(得分:0)

下面an example的工作流同时找到了两个:

name: Python package

on: [push]

jobs:
  build:
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v1
      with:
        python-version: pypy3
    - name: pypy absolute path
      run: C:\hostedtoolcache\windows\PyPy\3.6.9\x86\pypy3 -v
    - name: pypy in path
      run: pypy3 -v
    - name: Look for mingw
      run: gcc --version

请参见output here。您没有列出原始工作流程,但我想您已经为指定python版本而烦恼了。 documentation列出了python和pypy的单独版本。

相关问题