[英]Is it possible to have Github Actions for Elixir with Windows?
我有 GithubActions 脚本,它尝试使用 Windows 系统为 Elixir 进行一些基本设置。 我需要它为 windows 的原因是因为我正在为 Windows 发布。
所以我的脚本的开头尽可能简单:
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
但是,运行失败:
看起来动作已移至新位置,现在确实支持 windows。 在此处参考升级的操作:
erlef/setup-beam@v1
随着功能被包装到更大的上下文中,请检查文档以获取所需的语法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.