Skip to content

Commit

Permalink
test basic-cli release with sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Dec 29, 2024
1 parent 9b13b19 commit 9111bd6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/basic_cli_build_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
# pull_request:
pull_request:
workflow_dispatch:

# this cancels workflows currently in progress if you start a new one
Expand All @@ -11,7 +11,7 @@ env:
# use .tar.gz for quick testing
ARCHIVE_FORMAT: .tar.br
# Make a new basic-cli git tag and set it here before starting this workflow
RELEASE_TAG: 0.17.0
RELEASE_TAG: 0.19.0-sqlite

jobs:
prepare:
Expand All @@ -34,14 +34,14 @@ jobs:
fi
# get latest nightly releases
#- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
#- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-latest.tar.gz
#- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_x86_64-latest.tar.gz
#- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_apple_silicon-latest.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-TESTING.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-TESTING.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_x86_64-TESTING.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_apple_silicon-TESTING.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-latest.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_x86_64-latest.tar.gz
- run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_apple_silicon-latest.tar.gz
# - run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-TESTING.tar.gz
# - run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_arm64-TESTING.tar.gz
# - run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_x86_64-TESTING.tar.gz
# - run: curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_apple_silicon-TESTING.tar.gz

- name: Save roc_nightly archives
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -96,14 +96,16 @@ jobs:
basic-cli/platform/linux-arm64.a
build-macos-x86_64-files:
runs-on: [macos-12] # I expect the generated files to work on macOS 12 and up
runs-on: [macos-13] # I expect the generated files to work on macOS 13 and up
needs: [prepare]
steps:
- uses: actions/checkout@v4

- name: Download the previously uploaded roc_nightly archives
uses: actions/download-artifact@v4

- run: brew install z3

- run: ./ci/build_basic_cli.sh macos_x86_64

- name: Save .a file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_manager.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
pull_request:
# pull_request:

name: CI manager

Expand Down
6 changes: 3 additions & 3 deletions ci/build_basic_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ roc version
cd basic-cli
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ $(uname -m) == "aarch64" ]]; then
target_arch="aarch64-unknown-linux-musl"
CARGO_BUILD_TARGET="aarch64-unknown-linux-musl"
else
target_arch="x86_64-unknown-linux-musl"
CARGO_BUILD_TARGET="x86_64-unknown-linux-musl"
fi
fi
./jump-start.sh
CARGO_BUILD_TARGET=$CARGO_BUILD_TARGET ./jump-start.sh

# build the basic cli platform
roc build.roc --linker=legacy
Expand Down

0 comments on commit 9111bd6

Please sign in to comment.