-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbshipit-source-id: c86303b25936d586b185a0b4f4e6dc8d307cf4aa
- Loading branch information
0 parents
commit 68677d4
Showing
552 changed files
with
140,276 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[alias] | ||
xtask = "run --package xtask --" | ||
|
||
# @fb-only: [build] | ||
# @fb-only: target-dir = "../../../buck-out/elp" | ||
|
||
[profile.release] | ||
lto = "thin" | ||
strip = true | ||
|
||
# Workaround to easily locate workspace root | ||
# See https://github.com/rust-lang/cargo/issues/3946 | ||
[env] | ||
CARGO_WORKSPACE_DIR = {value = "", relative = true} |
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,29 @@ | ||
--- | ||
name: Bug report | ||
about: Create a Bug Report | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Describe the bug | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
### To Reproduce** | ||
|
||
Steps to reproduce the behavior. | ||
|
||
### Expected behavior | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
### Actual behavior | ||
|
||
A clear and concise description of what happens instead. | ||
|
||
### Context | ||
|
||
- ELP Version (output of `elp version`): | ||
- Editor used: |
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,5 @@ | ||
### Describe your changes | ||
|
||
<!-- | ||
Contributors guide: https://github.com/WhatsApp/erlang-language-platform/blob/main/CONTRIBUTING.md | ||
--> |
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,27 @@ | ||
name: Build Website | ||
|
||
defaults: | ||
run: | ||
working-directory: website | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-website: | ||
name: Build Website | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
cache-dependency-path: website/yarn.lock | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Build website | ||
run: yarn 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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
jobs: | ||
linux-ci: | ||
runs-on: ubuntu-20.04 | ||
name: Linux CI (OTP ${{matrix.otp}}) | ||
strategy: | ||
matrix: | ||
otp: ['26.0', '25.3'] | ||
steps: | ||
- name: Checkout erlang-language-platform | ||
uses: "actions/checkout@v3" | ||
- name: Checkout eqwalizer | ||
uses: "actions/checkout@v3" | ||
with: | ||
repository: WhatsApp/eqwalizer | ||
path: eqwalizer | ||
- name: Set up GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install musl-tools for rust toolchain | ||
uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: musl-tools | ||
version: 1.0 | ||
- name: Set up rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: x86_64-unknown-linux-musl | ||
- name: Install OTP | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{matrix.otp}} | ||
install-rebar: false | ||
install-hex: false | ||
- name: Install rebar3 | ||
run: "curl https://s3.amazonaws.com/rebar3/rebar3 -o rebar3 && chmod +x rebar3" | ||
- name: "add rebar3 to path" | ||
run: 'echo "$GITHUB_WORKSPACE/rebar3" >> $GITHUB_PATH' | ||
- name: Assemble eqwalizer.jar | ||
run: "cd eqwalizer/eqwalizer; sbt assembly" | ||
- name: Assemble eqwalizer binary | ||
run: "cd eqwalizer/eqwalizer && native-image -H:IncludeResources=application.conf --no-server --no-fallback -jar target/scala-2.13/eqwalizer.jar eqwalizer" | ||
- name: Test elp | ||
run: "export ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer/eqwalizer && cargo test --no-default-features --workspace --target x86_64-unknown-linux-musl" | ||
- name: Assemble elp | ||
run: "export ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer/eqwalizer && cargo build --release --target x86_64-unknown-linux-musl" | ||
- name: Add elp to path | ||
run: 'echo "$GITHUB_WORKSPACE/target/x86_64-unknown-linux-musl/release" >> $GITHUB_PATH' | ||
- name: Test eqwalizer | ||
run: 'cd eqwalizer/eqwalizer && sbt test' | ||
- name: Upload eqwalizer.jar | ||
if: matrix.otp == '25.3' | ||
uses: "actions/upload-artifact@v3" | ||
with: | ||
name: eqwalizer.jar | ||
path: eqwalizer/eqwalizer/target/scala-2.13/eqwalizer.jar | ||
macos-ci: | ||
needs: | ||
- linux-ci | ||
runs-on: macos-latest | ||
name: MacOS CI (${{matrix.brew_erlang}}) | ||
strategy: | ||
matrix: | ||
brew_erlang: ['erlang@25'] | ||
steps: | ||
- name: Checkout erlang-language-platform | ||
uses: "actions/checkout@v3" | ||
- name: Checkout eqwalizer | ||
uses: "actions/checkout@v3" | ||
with: | ||
repository: WhatsApp/eqwalizer | ||
path: eqwalizer | ||
- name: Set up GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install Erlang | ||
run: brew install ${{matrix.brew_erlang}} | ||
- name: Install rebar3 | ||
run: "mkdir rebar3 && curl https://s3.amazonaws.com/rebar3/rebar3 -o rebar3/rebar3 && chmod +x rebar3/rebar3" | ||
- name: Set up rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Download eqwalizer.jar | ||
uses: "actions/download-artifact@v2" | ||
with: | ||
name: eqwalizer.jar | ||
path: eqwalizer/eqwalizer/target/scala-2.13 | ||
- name: Assemble eqwalizer binary | ||
run: "cd eqwalizer/eqwalizer && native-image -H:IncludeResources=application.conf --no-server --no-fallback -jar target/scala-2.13/eqwalizer.jar eqwalizer" | ||
- name: Test elp | ||
run: "export PATH=$GITHUB_WORKSPACE/rebar3:/usr/local/opt/${{matrix.brew_erlang}}/bin:$PATH ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer/eqwalizer && cargo test --no-default-features --workspace" | ||
- name: Assemble elp | ||
run: "export PATH=$GITHUB_WORKSPACE/rebar3:/usr/local/opt/${{matrix.brew_erlang}}/bin:$PATH ELP_EQWALIZER_PATH=$GITHUB_WORKSPACE/eqwalizer/eqwalizer/eqwalizer && cargo build --release" | ||
name: erlang-language-platform CI | ||
on: | ||
push: {} |
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,36 @@ | ||
name: Deploy Website to GitHub Pages | ||
|
||
defaults: | ||
run: | ||
working-directory: website | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy-website: | ||
name: Deploy Website to GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
cache-dependency-path: website/yarn.lock | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Build website | ||
run: yarn build | ||
|
||
# Popular action to deploy to GitHub Pages: | ||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus | ||
- name: Deploy Website to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Build output to publish to the `gh-pages` branch: | ||
publish_dir: ./website/build |
Oops, something went wrong.