-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
test old_linux nightly release too #5672
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4a7fe28
test old linux nightly
Anton-4 ca5509f
add zig to script PATH
Anton-4 d7887f4
use ROC_ZIG to fix path issues
Anton-4 78bf5dd
test zig version inside script [skip ci]
Anton-4 2189bd1
allow ci run prevention
Anton-4 52dd4c5
dummy change skipdefaultci
Anton-4 215c7ce
use zig from action
Anton-4 425b3cf
indent fix
Anton-4 b82df28
only run rm if there is input
Anton-4 574428b
debug grep output
Anton-4 8801fe6
try for loop
Anton-4 29a5588
unset var fix
Anton-4 d005cca
dry
Anton-4 d66055b
undo last commit
Anton-4 fbe2954
re-enable PR trigger
Anton-4 408a891
enabled too much
Anton-4 c2eecb7
removed temp line
Anton-4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 .. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was moved to a bash script