Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into string_simple_rabin…
Browse files Browse the repository at this point in the history
…_karp
  • Loading branch information
funny-falcon committed Apr 18, 2024
2 parents 0e098c6 + 4dd5814 commit 962a4b1
Show file tree
Hide file tree
Showing 583 changed files with 35,180 additions and 8,518 deletions.
27 changes: 16 additions & 11 deletions .circleci/config.yml
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: "e15cbd3b6b3e1bac1b16905f1b1a15ba6ae4e554"
default: "46c295d14e4dc3f6b7d9598c0b4dd89e93232def"
previous_crystal_base_url:
description: "Prefix for URLs to Crystal bootstrap compiler"
type: string
default: "https://github.com/crystal-lang/crystal/releases/download/1.9.2/crystal-1.9.2-1"
default: "https://github.com/crystal-lang/crystal/releases/download/1.12.1/crystal-1.12.1-1"

defaults:
environment: &env
Expand All @@ -35,7 +39,7 @@ defaults:
jobs:
test_linux:
machine:
image: ubuntu-2004:202201-02
image: default
environment:
<<: *env
TRAVIS_OS_NAME: linux
Expand Down Expand Up @@ -66,7 +70,7 @@ jobs:

test_alpine:
machine:
image: ubuntu-2004:202201-02
image: default
environment:
<<: *env
TRAVIS_OS_NAME: linux
Expand Down Expand Up @@ -111,7 +115,8 @@ jobs:

test_preview_mt:
machine:
image: ubuntu-2004:202201-02
image: default
resource_class: large
environment:
<<: *env
TRAVIS_OS_NAME: linux
Expand Down Expand Up @@ -142,7 +147,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
Expand Down Expand Up @@ -259,7 +264,7 @@ jobs:

dist_linux:
machine:
image: ubuntu-2004:202201-02
image: default
steps:
- attach_workspace:
at: /tmp/workspace
Expand Down Expand Up @@ -342,7 +347,7 @@ jobs:
dist_docker:
machine:
image: ubuntu-2004:202201-02
image: default
steps:
- attach_workspace:
at: /tmp/workspace
Expand All @@ -358,7 +363,7 @@ jobs:

publish_docker:
machine:
image: ubuntu-2004:202201-02
image: default
steps:
- attach_workspace:
at: /tmp/workspace
Expand Down Expand Up @@ -413,7 +418,7 @@ jobs:
dist_docs:
machine:
image: ubuntu-2004:202201-02
image: default
steps:
- attach_workspace:
at: /tmp/workspace
Expand Down Expand Up @@ -459,7 +464,7 @@ jobs:

test_dist_linux_on_docker:
machine:
image: ubuntu-2004:202201-02
image: default
environment:
<<: *env
TRAVIS_OS_NAME: linux
Expand Down
56 changes: 28 additions & 28 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
## 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_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
## 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 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
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ labels: kind:feature
- Describe the feature you would like, optionally illustrated by examples, and how it will solve the above problem.
- Describe considered alternative solutions, and the reasons why you have not proposed them as a solution here.
- Does it break backward compatibility, if yes then what's the migration path?

In case this proposal includes a substantial change to the language, we ask you to go through an [RFC process](https://github.com/crystal-lang/rfcs).

The best place to start an open discussion about potential changes is the [Crystal forum](https://forum.crystal-lang.org/c/crystal-contrib/6).
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"matchManagers": ["github-actions"],
"schedule": ["after 5am and before 8am on Wednesday"]
}
]
],
"labels": ["topic:infrastructure/ci"]
}
12 changes: 6 additions & 6 deletions .github/workflows/aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
args: make crystal
- name: Upload Crystal executable
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: crystal-aarch64-musl
path: |
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Download Crystal executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: crystal-aarch64-musl
- name: Mark downloaded compiler as executable
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Download Crystal executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: crystal-aarch64-musl
- name: Mark downloaded compiler as executable
Expand All @@ -69,7 +69,7 @@ jobs:
with:
args: make crystal
- name: Upload Crystal executable
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: crystal-aarch64-gnu
path: |
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Download Crystal executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: crystal-aarch64-gnu
- name: Mark downloaded compiler as executable
Expand All @@ -100,7 +100,7 @@ jobs:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Download Crystal executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: crystal-aarch64-gnu
- name: Mark downloaded compiler as executable
Expand Down
33 changes: 27 additions & 6 deletions .github/workflows/interpreter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test-interpreter_spec:
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.9.2-build
image: crystallang/crystal:1.12.1-build
name: "Test Interpreter"
steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +24,7 @@ jobs:
build-interpreter:
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.9.2-build
image: crystallang/crystal:1.12.1-build
name: Build interpreter
steps:
- uses: actions/checkout@v4
Expand All @@ -33,7 +33,7 @@ jobs:
run: make interpreter=1 release=1

- name: Upload compiler artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: crystal-interpreter
path: |
Expand All @@ -43,7 +43,7 @@ jobs:
needs: build-interpreter
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.9.2-build
image: crystallang/crystal:1.12.1-build
strategy:
matrix:
part: [0, 1, 2, 3]
Expand All @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v4

- name: Download compiler artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: crystal-interpreter
path: .build/
Expand All @@ -61,4 +61,25 @@ jobs:
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
run: SPEC_SPLIT="${{ matrix.part }}%4" bin/crystal i spec/std_spec.cr -- --junit_output .junit/interpreter-std_spec.${{ matrix.part }}.xml

test-interpreter-primitives_spec:
needs: build-interpreter
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.11.2-build
name: "Test primitives_spec with interpreter"
steps:
- uses: actions/checkout@v4

- name: Download compiler artifact
uses: actions/download-artifact@v4
with:
name: crystal-interpreter
path: .build/

- name: Mark downloaded compiler as executable
run: chmod +x .build/crystal

- name: Run primitives_spec with interpreter
run: bin/crystal i spec/primitives_spec.cr -- --junit_output .junit/interpreter-primitives_spec.xml
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
crystal_bootstrap_version: [1.7.3, 1.8.2, 1.9.2]
crystal_bootstrap_version: [1.7.3, 1.8.2, 1.9.2, 1.10.1, 1.11.2, 1.12.1]
flags: [""]
include:
# libffi is only available starting from the 1.2.2 build images
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
run: echo $GITHUB_SHA > ./docs/revision.txt

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ jobs:
llvm_ubuntu_version: "18.04"
- llvm_version: "16.0.3"
llvm_ubuntu_version: "22.04"
- llvm_version: "17.0.6"
llvm_ubuntu_version: "22.04"
name: "LLVM ${{ matrix.llvm_version }}"
steps:
- name: Checkout Crystal source
uses: actions/checkout@v4

- name: Cache LLVM
id: cache-llvm
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./llvm
key: llvm-${{ matrix.llvm_version }}
Expand All @@ -54,7 +56,7 @@ jobs:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: "1.9.2"
crystal: "1.12.1"

- name: Build libllvm_ext
run: make -B deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- name: Download Crystal source
uses: actions/checkout@v4

- uses: cachix/install-nix-action@v23
- uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.9.2/install
extra_nix_config: |
experimental-features = nix-command
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v14
with:
name: crystal-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/openssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
openssl3:
runs-on: ubuntu-latest
name: "OpenSSL 3.0"
container: crystallang/crystal:1.9.2-alpine
container: crystallang/crystal:1.12.1-alpine
steps:
- name: Download Crystal source
uses: actions/checkout@v4
Expand All @@ -27,7 +27,7 @@ jobs:
openssl111:
runs-on: ubuntu-latest
name: "OpenSSL 1.1.1"
container: crystallang/crystal:1.9.2-alpine
container: crystallang/crystal:1.12.1-alpine
steps:
- name: Download Crystal source
uses: actions/checkout@v4
Expand All @@ -42,7 +42,7 @@ jobs:
libressl34:
runs-on: ubuntu-latest
name: "LibreSSL 3.4"
container: crystallang/crystal:1.9.2-alpine
container: crystallang/crystal:1.12.1-alpine
steps:
- name: Download Crystal source
uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit 962a4b1

Please sign in to comment.