Emacs Eask
GitHubDiscordToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage
Edit page

💿 GitHub Actions

Windows macOS Linux

以下是使用 GitHub Actions 服務的示例。

jobs:
  test:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        emacs-version: [26.3, 27.2, 28.2, 29.1, snapshot]

    steps:
    - uses: actions/checkout@v3

    # 安裝 Emacs
    - uses: jcs090218/setup-emacs@master
      with:
        version: ${{ matrix.emacs-version }}

    # 安裝 Eask
    - uses: emacs-eask/setup-eask@master
      with:
        version: 'snapshot'

    - name: Run tests
      run: |
        eask package
        eask install
        eask compile        

此示例在以下環境中測試您的 Emacs Lisp 包;

OSEmacsEask
Linux (Ubuntu)26.x, 27.x, 28.x, 29.x, snapshotlatest
macOS26.x, 27.x, 28.x, 29.x, snapshotlatest
Windows26.x, 27.x, 28.x, 29.x, snapshotlatest

通過以下操作,

💡 您可以通過 eask generate workflow github 生成工作流文件, 參見命令和選項 了解更多信息!

💾 在本地設置 Eask

您可以使用 .github/scripts/setup-eask (Unix) 或 .github/scripts/setup-eask.ps1 (Windows) 中的腳本在本地安裝 Eask。

    - uses: actions/checkout@v3

    - name: 準備 Eask (Unix)
      if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
      run: |
        chmod -R 777 ./
        .github/scripts/setup-eask        

    - name: 準備 Eask (Windows)
      if: matrix.os == 'windows-latest'
      run: .github/scripts/setup-eask.ps1