-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ci): use
ghjk
for deps (#495)
### Describe your change This PR merges most of the CI test runs into one and make use of the `ghjk` tool to install most of the dependencies. ### Motivation and context Improve tool dependency management. ### Migration notes ### Checklist - [ ] The change come with new or modified tests - [ ] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change --------- Co-authored-by: Natoandro <[email protected]>
- Loading branch information
Showing
8 changed files
with
894 additions
and
437 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 |
---|---|---|
|
@@ -4,15 +4,10 @@ on: | |
- v* | ||
|
||
env: | ||
GHJK_VERSION: "6040bb3" | ||
PYTHON_VERSION: "3.8" | ||
POETRY_VERSION: "1.7.0" | ||
DENO_VERSION: "1.38.5" | ||
DENO_VERSION: "1.39.0" | ||
REGISTRY_IMAGE: ghcr.io/${{ github.repository_owner }}/typegate | ||
WASM_TOOLS_VERSION: "1.0.45" | ||
JCO_VERSION: "0.12.1" | ||
WASMEDGE_VERSION: "0.13.5" | ||
WASM_OPT_VERSION: "0.116.0" | ||
PNPM_VERSION: "8.8.0" | ||
|
||
jobs: | ||
check-bump: | ||
|
@@ -99,33 +94,23 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dsherret/rust-toolchain-file@v1 | ||
- uses: rui314/setup-mold@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: ${{ runner.os }}-rust-${{ hashFiles('**/rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: "poetry" | ||
- env: | ||
- uses: metatypedev/setup-ghjk@v1 | ||
- shell: bash | ||
env: | ||
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
WASM_FILE: target/release/typegraph_core.wasm | ||
run: | | ||
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v $WASMEDGE_VERSION | ||
export LD_LIBRARY_PATH="$HOME/.wasmedge/lib:$LD_LIBRARY_PATH" | ||
cargo install wasm-tools --version $WASM_TOOLS_VERSION --locked | ||
cargo install wasm-opt --version $WASM_OPT_VERSION --locked | ||
cargo build -p typegraph_core --target wasm32-unknown-unknown --target-dir target/wasm --release | ||
mkdir -p $(dirname $WASM_FILE) | ||
wasm-opt -Oz target/wasm/wasm32-unknown-unknown/release/typegraph_core.wasm -o $WASM_FILE.opt | ||
|
Oops, something went wrong.