[英]Is it possible to have Github Actions for Elixir with Windows?
I have GithubActions script that tries to do some basic setup for Elixir using a Windows system.我有 GithubActions 脚本,它尝试使用 Windows 系统为 Elixir 进行一些基本设置。 The reason I need it to be windows is because I am releasing for Windows.
我需要它为 windows 的原因是因为我正在为 Windows 发布。
So the start of my script is as simple as I could make it:所以我的脚本的开头尽可能简单:
name: build
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: actions/setup-elixir@v1
with:
elixir-version: '1.13.x' # Define the elixir version [required]
otp-version: '24.2.x' # Define the OTP version [required]
- name: Install Dependencies
run: mix deps.get
- name: Run credo code analyser
run: mix credo --strict
However, the run fails:但是,运行失败:
It looks like the action moved to a new location and now does support windows.看起来动作已移至新位置,现在确实支持 windows。 Reference the upgraded action here:
在此处参考升级的操作:
erlef/setup-beam@v1
Check the docs for the required syntax as the functionality got wrapped into a bigger context.随着功能被包装到更大的上下文中,请检查文档以获取所需的语法。
See: https://github.com/erlef/setup-beam见: https://github.com/erlef/setup-beam
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.