diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca630bc..5ff10e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ permissions: {} env: JUMP_START: 1 - ROC: ./roc_nightly/roc + ROC: roc EXAMPLES_DIR: ./examples/ jobs: @@ -24,28 +24,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Downloading latest roc nightly - run: | - if [[ "${{ runner.os }}-${{ runner.arch }}" == "Linux-ARM64" ]]; then - curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-latest.tar.gz - elif [[ "${{ runner.os }}" == "macOS" ]]; then - curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_apple_silicon-latest.tar.gz - else - curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz - fi - - - 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 + - uses: roc-lang/setup-roc@39c354a6a838a0089eea9068a0414f49b62c5c08 + with: + # Note: nightly hashes are not verified because they are updated regularly. + version: nightly - - run: ./roc_nightly/roc version + - run: roc version - name: Install dependencies (Ubuntu) if: startsWith(matrix.os, 'ubuntu-') @@ -78,10 +62,10 @@ jobs: if: startsWith(matrix.os, 'ubuntu-') run: | if [[ "${{ matrix.os }}" == *"-arm" ]]; then - # TODO debug this: CARGO_BUILD_TARGET=aarch64-unknown-linux-musl ./roc_nightly/roc build.roc -- --roc ./roc_nightly/roc + # TODO debug this: CARGO_BUILD_TARGET=aarch64-unknown-linux-musl roc build.roc -- --roc roc echo "no-op" else - CARGO_BUILD_TARGET=x86_64-unknown-linux-musl ./roc_nightly/roc build.roc -- --roc ./roc_nightly/roc + CARGO_BUILD_TARGET=x86_64-unknown-linux-musl roc build.roc -- --roc roc fi diff --git a/.github/workflows/ci_nix.yml b/.github/workflows/ci_nix.yml index 48b819a..043126c 100644 --- a/.github/workflows/ci_nix.yml +++ b/.github/workflows/ci_nix.yml @@ -15,8 +15,8 @@ jobs: strategy: fail-fast: false matrix: - # macos-13 uses x86-64 machine, macos-14 and macos-15 uses aarch64 - os: [macos-13, macos-15, ubuntu-22.04, ubuntu-24.04-arm] + # macos-15-intel uses x86-64 machine, macos-14 and macos-15 uses aarch64 + os: [macos-15-intel, macos-15, ubuntu-22.04, ubuntu-24.04-arm] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index fe7260b..496720f 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -37,18 +37,12 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - - name: Downloading latest roc nightly - run: | - curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz - - - name: prep nightly tar for use - run: | - mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz - tar -xzf roc_nightly.tar.gz - rm roc_nightly.tar.gz - mv roc_nightly* roc_nightly + - uses: roc-lang/setup-roc@39c354a6a838a0089eea9068a0414f49b62c5c08 + with: + # Note: nightly hashes are not verified because they are updated regularly. + version: nightly - - run: ./roc_nightly/roc version + - run: roc version - name: Create temp directory for docs run: mkdir -p ./temp_docs @@ -98,7 +92,7 @@ jobs: env: ROC_DOCS_URL_ROOT: /basic-webserver/main run: | - ./roc_nightly/roc docs ./platform/main.roc + roc docs ./platform/main.roc mkdir -p "./temp_docs/main" diff --git a/.github/workflows/test_latest_release.yml b/.github/workflows/test_latest_release.yml index a7a9e3b..ee7d7f8 100644 --- a/.github/workflows/test_latest_release.yml +++ b/.github/workflows/test_latest_release.yml @@ -14,8 +14,8 @@ jobs: test-latest-release: strategy: matrix: - # macos-13 uses x86_64, macos-14 uses apple silicon (arm64) - os: [ubuntu-22.04, macos-13, macos-14] + # macos-15-intel uses x86_64, macos-14 uses apple silicon (arm64) + os: [ubuntu-22.04, macos-15-intel, macos-14] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4