diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-05 15:53:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-05 15:53:21 +0100 |
| commit | 791119d4af1066b20fa2b5bf8fc82d04d843d51d (patch) | |
| tree | 94890756f4380fb2c1d8abd92af66128533a1535 /.github/workflows/ci.yml | |
| parent | e7cfd90b0f72874aa1535a382df32dce28bd587a (diff) | |
build: rewrite tools/ scripts to deno (#8247)
This commit rewrites scripts in "tools/" directory
to use Deno instead of Python. In return it allows
to remove huge number of Python packages in "third_party/".
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9c528e0c..5e46c273b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,19 @@ jobs: rustup component add clippy rustup component add rustfmt + - name: Install Deno + if: | + !startsWith(matrix.os, 'windows') + run: |- + curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.5.1 + echo "$HOME/.deno/bin" >> $GITHUB_PATH + + - name: Install Deno (Windows) + if: startsWith(matrix.os, 'windows') + run: |- + curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.5.1 + echo "$HOME/.deno/bin" >> $env:GITHUB_PATH + - name: Install Python uses: actions/setup-python@v1 with: @@ -93,14 +106,15 @@ jobs: python --version rustc --version cargo --version + deno --version - - name: lint.py + - name: lint.js if: matrix.kind == 'lint' - run: python ./tools/lint.py + run: deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js - - name: test_format.py + - name: test_format.js if: matrix.kind == 'lint' - run: python ./tools/test_format.py + run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check - name: Build release if: | @@ -133,7 +147,7 @@ jobs: DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }} run: | git clone --depth 1 -b gh-pages https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git gh-pages - python ./tools/build_benchmark_jsons.py --release + deno run --unstable -A ./tools/build_benchmark_jsons.js --release cd gh-pages git config user.email "propelml@gmail.com" git config user.name "denobot" |
