-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5672 from roc-lang/test-old-linux-release
test old linux nightly
- Loading branch information
Showing
11 changed files
with
70 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: Benchmarks | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: Macos x86-64 rust tests | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: Nix linux x86_64 cargo test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: Nix apple silicon cargo test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: Nix macOS x86_64 cargo test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: SpellCheck | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: windows - release build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
name: windows - subset of tests | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
set -euxo pipefail | ||
|
||
# if to prevent unset vars errror | ||
if [ -n "$(ls | grep -v "roc_nightly.*tar\.gz" | grep -v "^ci$")" ]; then | ||
|
||
# Remove everything in this dir except the tar and ci folder. | ||
# We want to test like a user who would have downloaded the release, so we clean up all files from the repo checkout. | ||
to_delete=$(ls | grep -v "roc_nightly.*tar\.gz" | grep -v "^ci$") | ||
|
||
for file_or_dir in $to_delete | ||
do | ||
echo "Removing: $file_or_dir" | ||
rm -rf "$file_or_dir" | ||
done | ||
fi | ||
|
||
# decompress the tar | ||
ls | grep "roc_nightly.*tar\.gz" | xargs tar -xzvf | ||
|
||
# delete tar | ||
ls | grep "roc_nightly.*tar\.gz" | xargs rm -rf | ||
|
||
# rename nightly folder | ||
mv roc_nightly* roc_nightly | ||
|
||
cd roc_nightly | ||
|
||
# test roc hello world | ||
./roc examples/helloWorld.roc | ||
|
||
./roc examples/platform-switching/rocLovesRust.roc | ||
|
||
./roc examples/platform-switching/rocLovesZig.roc | ||
|
||
./roc examples/platform-switching/rocLovesC.roc | ||
|
||
cd .. |