Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alpha release testing #7577

Merged
merged 4 commits into from
Feb 4, 2025
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
35 changes: 28 additions & 7 deletions .github/workflows/test_alpha_many_os.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
# pull_request:
# workflow_dispatch:
workflow_dispatch:

name: Test latest alpha releases for macOS and Linux

Expand All @@ -19,6 +19,13 @@ jobs:
with:
version: 0.13.0

- name: Get latest release info
id: get_release
run: |
RELEASE_INFO=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/roc-lang/roc/releases/latest)
echo "tag_name=$(echo "$RELEASE_INFO" | jq -r .tag_name)" >> $GITHUB_OUTPUT
echo "assets_url=$(echo "$RELEASE_INFO" | jq -r .assets_url)" >> $GITHUB_OUTPUT

- name: Delete everything except ci folder to test the release like a real user would
run: find . -maxdepth 1 ! -name ci ! -name '.' -exec rm -rf {} +

Expand All @@ -29,20 +36,30 @@ jobs:
- name: get the latest release archive for linux (x86_64)
if: startsWith(matrix.os, 'ubuntu') && !endsWith(matrix.os, '-arm')
run: |
curl -fL https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-linux_x86_64-0-alpha2-rolling.tar.gz -o roc_release.tar.gz
ASSETS_URL="${{ steps.get_release.outputs.assets_url }}"
DOWNLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$ASSETS_URL" | jq -r '.[] | select(.name | startswith("roc-linux_x86_64-") and (contains("old") | not)) | .browser_download_url')
curl -fLH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$DOWNLOAD_URL" -o roc_release.tar.gz

- name: get the latest release archive for linux (arm64)
if: startsWith(matrix.os, 'ubuntu') && endsWith(matrix.os, '-arm')
run: |
curl -fL https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-linux_arm64-0-alpha2-rolling.tar.gz -o roc_release.tar.gz
ASSETS_URL="${{ steps.get_release.outputs.assets_url }}"
DOWNLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$ASSETS_URL" | jq -r '.[] | select(.name | startswith("roc-linux_arm64-") and (contains("old") | not)) | .browser_download_url')
curl -fLH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$DOWNLOAD_URL" -o roc_release.tar.gz

- name: get the latest release archive for macos 13 (x86_64)
if: matrix.os == 'macos-13'
run: curl -fL https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-macos_x86_64-0-alpha2-rolling.tar.gz -o roc_release.tar.gz
run: |
ASSETS_URL="${{ steps.get_release.outputs.assets_url }}"
DOWNLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$ASSETS_URL" | jq -r '.[] | select(.name | startswith("roc-macos_x86_64-")) | .browser_download_url')
curl -fLH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$DOWNLOAD_URL" -o roc_release.tar.gz

- name: get the latest release archive for macos 14 (aarch64)
if: matrix.os == 'macos-14'
run: curl -fL https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-macos_apple_silicon-0-alpha2-rolling.tar.gz -o roc_release.tar.gz
run: |
ASSETS_URL="${{ steps.get_release.outputs.assets_url }}"
DOWNLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$ASSETS_URL" | jq -r '.[] | select(.name | startswith("roc-macos_apple_silicon-")) | .browser_download_url')
curl -fLH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$DOWNLOAD_URL" -o roc_release.tar.gz

- run: zig version

Expand All @@ -53,11 +70,15 @@ jobs:
- name: test with old linux release (x86_64)
if: startsWith(matrix.os, 'ubuntu') && !endsWith(matrix.os, '-arm')
run: |
curl -fL https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-old_linux_x86_64-0-alpha2-rolling.tar.gz -o roc_release.tar.gz
ASSETS_URL="${{ steps.get_release.outputs.assets_url }}"
DOWNLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$ASSETS_URL" | jq -r '.[] | select(.name | startswith("roc-old_linux_x86_64-")) | .browser_download_url')
curl -fLH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$DOWNLOAD_URL" -o roc_release.tar.gz
./ci/basic_release_test.sh roc_release.tar.gz

- name: test with old linux release (arm64)
if: startsWith(matrix.os, 'ubuntu') && endsWith(matrix.os, '-arm')
run: |
curl -fL https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-old_linux_arm64-0-alpha2-rolling.tar.gz -o roc_release.tar.gz
ASSETS_URL="${{ steps.get_release.outputs.assets_url }}"
DOWNLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$ASSETS_URL" | jq -r '.[] | select(.name | startswith("roc-old_linux_arm64-")) | .browser_download_url')
curl -fLH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$DOWNLOAD_URL" -o roc_release.tar.gz
./ci/basic_release_test.sh roc_release.tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/test_nightly_many_os.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
# pull_request:
# workflow_dispatch:
workflow_dispatch:

name: Test latest nightly releases for macOS and Linux

Expand Down
Loading