julia-actions / setup-julia

This action sets up a Julia environment for use in actions by downloading a specified version of Julia and adding it to PATH.
MIT License
93 stars 23 forks source link

[BUG] aarch64 not working #144

Closed frankwswang closed 1 year ago

frankwswang commented 1 year ago

Describe the bug CI does not work when adding aarch64 as an option for arch

To Reproduce Workflow file to reproduce the behavior:

name: CI-ARM64-Julia
on: 
  pull_request:
    branches:
      - main
  push:
    branches:
      - main
    tags: '*'
  workflow_dispatch:
jobs:
  test:
    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        version:
          - '1'
        os:
          - ubuntu-latest
          - macOS-latest
          - windows-latest
        arch:
          - aarch64
    steps:
      - uses: actions/checkout@v2
      - uses: julia-actions/setup-julia@v1
        with:
          version: ${{ matrix.version }}
          arch: ${{ matrix.arch }}
      - uses: actions/cache@v2
        env:
          cache-name: cache-artifacts
        with:
          path: ~/.julia/artifacts
          key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
          restore-keys: |
            ${{ runner.os }}-test-${{ env.cache-name }}-
            ${{ runner.os }}-test-
            ${{ runner.os }}-
      - uses: julia-actions/julia-buildpkg@latest
      - uses: julia-actions/julia-runtest@latest
      - uses: julia-actions/julia-processcoverage@v1
      - uses: codecov/codecov-action@v2
        with:
          file: lcov.info
DilumAluthge commented 1 year ago

Can you share an example log showing the error that you get?

Also, is this about Linux on aarch64 or macOS on aarch64?

DilumAluthge commented 1 year ago

Oh, also, note that currently GitHub does not offer any GitHub-hosted runners with the aarch64 architecture. Currently, GitHub only offers GitHub-hosted runners with the x86_64 architecture. See e.g. https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources

So if you want to use aarch64, you need to supply your own hardware and use self-hosted runners. See e.g. https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners

frankwswang commented 1 year ago

None of the three platforms work on aarch64.

frankwswang commented 1 year ago

Oh, also, note that currently GitHub does not offer any GitHub-hosted runners with the aarch64 architecture. Currently, GitHub only offers GitHub-hosted runners with the x86_64 architecture. See e.g. https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources

So if you want to use aarch64, you need to supply your own hardware and use self-hosted runners. See e.g. https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners

I see. Thanks for the info!