-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/enumerable-to_set-block
- Loading branch information
Showing
1,060 changed files
with
62,384 additions
and
22,856 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,14 +1,18 @@ | ||
version: 2.1 | ||
|
||
parameters: | ||
distribution-scripts-repo: | ||
description: "Git url https://github.com/crystal-lang/distribution-scripts/" | ||
type: string | ||
default: "https://github.com/crystal-lang/distribution-scripts.git" | ||
distribution-scripts-version: | ||
description: "Git ref for version of https://github.com/crystal-lang/distribution-scripts/" | ||
type: string | ||
default: "f567925d4d36be64b7e211d0c166af9bdd92c75f" | ||
default: "e15cbd3b6b3e1bac1b16905f1b1a15ba6ae4e554" | ||
previous_crystal_base_url: | ||
description: "Prefix for URLs to Crystal bootstrap compiler" | ||
type: string | ||
default: "https://github.com/crystal-lang/crystal/releases/download/1.6.1/crystal-1.6.1-1" | ||
default: "https://github.com/crystal-lang/crystal/releases/download/1.10.1/crystal-1.10.1-1" | ||
|
||
defaults: | ||
environment: &env | ||
|
@@ -19,7 +23,9 @@ defaults: | |
- run: bin/ci prepare_system | ||
- run: echo 'export CURRENT_TAG="$CIRCLE_TAG"' >> $BASH_ENV | ||
- run: bin/ci prepare_build | ||
- run: bin/ci build | ||
- run: | ||
command: bin/ci build | ||
no_output_timeout: 30m | ||
- run: | ||
when: always | ||
command: | | ||
|
@@ -45,7 +51,9 @@ jobs: | |
- run: bin/ci prepare_system | ||
- run: echo 'export CURRENT_TAG="$CIRCLE_TAG"' >> $BASH_ENV | ||
- run: bin/ci prepare_build | ||
- run: bin/ci build | ||
- run: | ||
command: bin/ci build | ||
no_output_timeout: 30m | ||
- run: | ||
when: always | ||
command: | | ||
|
@@ -87,7 +95,9 @@ jobs: | |
- run: echo 'export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig"' >> $BASH_ENV | ||
- run: echo 'export CURRENT_TAG="$CIRCLE_TAG"' >> $BASH_ENV | ||
- run: bin/ci prepare_build | ||
- run: bin/ci build | ||
- run: | ||
command: bin/ci build | ||
no_output_timeout: 30m | ||
- run: | ||
when: always | ||
command: | | ||
|
@@ -117,7 +127,9 @@ jobs: | |
- run: echo 'export CURRENT_TAG="$CIRCLE_TAG"' >> $BASH_ENV | ||
- run: bin/ci prepare_build | ||
- run: bin/ci with_build_env 'make crystal' | ||
- run: bin/ci with_build_env 'CRYSTAL_WORKERS=4 make std_spec threads=1 FLAGS="-D preview_mt" junit_output=.junit/std_spec.xml' | ||
- run: | ||
command: bin/ci with_build_env 'CRYSTAL_WORKERS=4 make std_spec threads=1 FLAGS="-D preview_mt" junit_output=.junit/std_spec.xml' | ||
no_output_timeout: 30m | ||
- run: | ||
when: always | ||
command: | | ||
|
@@ -134,7 +146,7 @@ jobs: | |
steps: | ||
# checkout specific distribution-scripts version to perform releases and nightly | ||
- run: | | ||
git clone https://github.com/crystal-lang/distribution-scripts.git ~/distribution-scripts | ||
git clone << pipeline.parameters.distribution-scripts-repo >> ~/distribution-scripts | ||
cd ~/distribution-scripts | ||
git checkout << pipeline.parameters.distribution-scripts-version >> | ||
# persist relevant information for build process | ||
|
@@ -428,7 +440,7 @@ jobs: | |
- image: manastech/s3cmd:2.2-alpine | ||
environment: | ||
<<: *env | ||
AWS_ACCESS_KEY_ID: AKIA2EEIIRCJCMOSW2XH | ||
AWS_ACCESS_KEY_ID: AKIA2EEIIRCJDEDGK6MQ | ||
steps: | ||
- attach_workspace: | ||
at: /tmp/workspace | ||
|
@@ -470,7 +482,9 @@ jobs: | |
- run: bin/ci prepare_system | ||
- run: echo 'export CURRENT_TAG="$CIRCLE_TAG"' >> $BASH_ENV | ||
- run: bin/ci prepare_build | ||
- run: bin/ci build | ||
- run: | ||
command: bin/ci build | ||
no_output_timeout: 30m | ||
|
||
workflows: | ||
version: 2 | ||
|
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,30 @@ | ||
## Sources | ||
|
||
*.cr text eol=lf | ||
|
||
## Sourced-in dependencies | ||
|
||
lib/** linguist-vendored | ||
|
||
## Generated files | ||
|
||
# produced by scripts/generate_windows_zone_names.cr | ||
src/crystal/system/win32/zone_names.cr linguist-generated | ||
# produced by scripts/generate_html_entities.cr | ||
src/html/entities.cr linguist-generated | ||
# produced by scripts/generate_ssl_server_defaults.cr | ||
src/openssl/ssl/defaults.cr linguist-generated | ||
# produced by scripts/generate_grapheme_properties.cr | ||
src/string/grapheme/properties.cr linguist-generated | ||
# produced by scripts/generate_unicode_data.cr | ||
src/unicode/data.cr linguist-generated | ||
# produced by spec/generate_interpreter_spec.sh | ||
spec/interpreter_std_spec.cr linguist-generated | ||
# produced by scripts/generate_grapheme_break_specs.cr | ||
spec/std/string/grapheme_break_spec.cr linguist-generated | ||
# produced by spec/generate_wasm32_spec.sh | ||
spec/wasm32_std_spec.cr linguist-generated | ||
|
||
## Syntax highlighting | ||
|
||
Makefile.win linguist-language=makefile |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:base"], | ||
"separateMajorMinor": false, | ||
"packageRules": [ | ||
{ | ||
"matchDatasources": ["docker"], | ||
"enabled": false | ||
}, | ||
{ | ||
"groupName": "GH Actions", | ||
"matchManagers": ["github-actions"], | ||
"schedule": ["after 5am and before 8am on Wednesday"] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Interpreter Test | ||
|
||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | ||
|
||
env: | ||
SPEC_SPLIT_DOTS: 160 | ||
|
||
jobs: | ||
test-interpreter_spec: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: crystallang/crystal:1.10.1-build | ||
name: "Test Interpreter" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Test interpreter_spec | ||
run: make interpreter_spec junit_output=.junit/interpreter_spec.xml | ||
|
||
build-interpreter: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: crystallang/crystal:1.10.1-build | ||
name: Build interpreter | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build compiler | ||
run: make interpreter=1 release=1 | ||
|
||
- name: Upload compiler artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: crystal-interpreter | ||
path: | | ||
.build/crystal | ||
test-interpreter-std_spec: | ||
needs: build-interpreter | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: crystallang/crystal:1.10.1-build | ||
strategy: | ||
matrix: | ||
part: [0, 1, 2, 3] | ||
name: "Test std_spec with interpreter (${{ matrix.part }})" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download compiler artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: crystal-interpreter | ||
path: .build/ | ||
|
||
- name: Mark downloaded compiler as executable | ||
run: chmod +x .build/crystal | ||
|
||
- name: Run std_spec with interpreter | ||
run: SPEC_SPLIT="${{ matrix.part }}%4" bin/crystal i spec/interpreter_std_spec.cr -- --junit_output .junit/interpreter-std_spec.${{ matrix.part }}.xml |
Oops, something went wrong.