uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
665 stars 146 forks source link

Error while setting up Go #125

Closed sunilkumardash9 closed 1 year ago

sunilkumardash9 commented 1 year ago

while installing Go from ppa:longsleep/golang-backports I get this error: /root/run-on-arch-install.sh: line 6: : command not found

But I don't get this error while installing from ubuntu's repo it works fine.

run_on_arm64:
      runs-on: ubuntu-latest
      steps:
       - uses: actions/checkout@v3

       - name: Set up Go
         uses: actions/setup-go@v3
         with:
           go-version: 1.19

       - name: Run on aarch64
         uses: uraimo/run-on-arch-action@v2
         with:
          arch: aarch64
          distro: ubuntu_latest
          githubToken: ${{ github.token }}
          install: |
            apt-get update && \
            apt-get install -y software-properties-common && \
            add-apt-repository ppa:longsleep/golang-backports -y && \    
            apt-get install golang-1.19

          run: |
            go build -buildvcs=false ./...
            go test -v ./... 

Is there something I am missing?