-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shivansh Vij <[email protected]>
- Loading branch information
1 parent
4aa0692
commit ac8fea1
Showing
14 changed files
with
111 additions
and
56 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,84 @@ | ||
name: Typescript Builder | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "compile/typescript/builder/**" | ||
|
||
jobs: | ||
interpreter: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Rust | ||
run: | | ||
rustup toolchain install stable --profile minimal --no-self-update | ||
rustup default stable | ||
rustup target add wasm32-wasi | ||
shell: bash | ||
|
||
- name: Make interpreter | ||
working-directory: compile/typescript/builder | ||
run: make interpreter | ||
|
||
- name: Upload core binary to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: interpreter | ||
path: compile/typescript/builder/interpreter/target/wasm32-wasi/release/js_interpreter.wasm | ||
|
||
builder: | ||
name: builder-${{ matrix.name }} | ||
needs: interpreter | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- name: x86_64-unknown-linux-gnu | ||
os: ubuntu-20.04 | ||
|
||
- name: aarch64-unknown-linux-gnu | ||
os: ubuntu-20.04 | ||
|
||
- name: x86_64-apple-darwin | ||
os: macos-latest | ||
|
||
- name: aarch64-apple-darwin | ||
os: macos-latest | ||
|
||
- name: x86_64-pc-windows-msvc | ||
os: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Rust | ||
run: | | ||
rustup toolchain install stable --profile minimal --no-self-update | ||
rustup default stable | ||
rustup target add ${{ matrix.name }} | ||
shell: bash | ||
|
||
- name: Install ARM GCC toolchain | ||
run: sudo apt-get --assume-yes install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | ||
if: matrix.name == 'aarch64-unknown-linux-gnu' | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: interpreter | ||
path: compile/typescript/builder/interpreter/target/wasm32-wasi/release/ | ||
|
||
- name: Build CLI ${{ matrix.name }} | ||
working-directory: compile/typescript/builder | ||
run: make builder-${{ matrix.name }} | ||
env: | ||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc | ||
|
||
- name: Commit CLI ${{ matrix.name }} Binary | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
commit: "--signoff" | ||
message: "Add: js_builder-${{ matrix.name }}" | ||
add: js_builder-${{ matrix.name }} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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