Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 8 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: {}

env:
JUMP_START: 1
ROC: ./roc_nightly/roc
ROC: roc
EXAMPLES_DIR: ./examples/

jobs:
Expand All @@ -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-')
Expand Down Expand Up @@ -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


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_latest_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down