Skip to content

test basic-cli release and main on arm64 #50

test basic-cli release and main on arm64

test basic-cli release and main on arm64 #50

on:
workflow_dispatch:
pull_request:
# this cancels workflows currently in progress if you start a new one
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-basic-cli-release-arm64:
runs-on: [self-hosted, Linux, ARM64]
steps:
- name: clone basic-cli repo
uses: actions/checkout@v3
with:
repository: roc-lang/basic-cli
ref: main
#- name: get latest roc nightly
# run: |
# curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-latest.tar.gz
#- name: rename nightly tar
# run: mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz
#- name: decompress the tar
# run: tar -xzf roc_nightly.tar.gz
#- run: rm roc_nightly.tar.gz
#- name: simplify nightly folder name
# run: mv roc_nightly* roc_nightly
#- run: ./roc_nightly/roc version
#- run: expect -v
# Run all tests
#- run: ./ci/all_tests.sh
######
# Now test the latest basic-cli release, not the main branch
######
- name: Remove roc_nightly folder to keep things simple (we'll download it again later)
run: rm -rf roc_nightly
- name: Get the examples of the latest basic-cli release
run: ./ci/get_latest_release_examples.sh
- run: ls
- run: ls ./ci
- name: Run all tests with latest roc nightly and latest basic-cli release
run: |
sed -i 's/x86_64/arm64/g' ./ci/test_latest_release.sh
EXAMPLES_DIR=./latest-release-examples ./ci/test_latest_release.sh