簡體   English   中英

Windows 是否可以對 Elixir 進行 Github 操作?

[英]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

但是,運行失敗:

在此處輸入圖像描述

問題

  1. 難道我做錯了什么?
  2. 是否有可能在 Windows 中運行 Elixir 的 GitHub 操作?
  3. 如果沒有,我如何在 GitHub 操作中測試我的代碼,同時確保它也適用於 Windows?

看起來動作已移至新位置,現在確實支持 windows。 在此處參考升級的操作:

erlef/setup-beam@v1

隨着功能被包裝到更大的上下文中,請檢查文檔以獲取所需的語法。

見: https://github.com/erlef/setup-beam

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM