0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-26 00:59:28 -05:00

Clean up and tweak Github Actions configuration (#7)

This commit is contained in:
Bert Belder 2019-11-02 15:57:18 -07:00
parent 72d622bb4e
commit 51c250b775
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -1,6 +1,6 @@
name: ci name: ci
on: [push] # TODO(ry) [push, pull_request] on: [push, pull_request]
jobs: jobs:
build: build:
@ -9,7 +9,7 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
strategy: strategy:
matrix: matrix:
os: [macOS-10.14, ubuntu-16.04, windows-2019] os: [macOS-latest, ubuntu-16.04, windows-2019]
steps: steps:
- name: Configure git - name: Configure git
run: git config --global core.symlinks true run: git config --global core.symlinks true
@ -17,7 +17,7 @@ jobs:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
fetch-depth: 1 fetch-depth: 10
submodules: true submodules: true
- name: Install rust - name: Install rust
@ -26,9 +26,9 @@ jobs:
rust-version: "1.38.0" rust-version: "1.38.0"
- name: Remove unused versions of Python - name: Remove unused versions of Python
# Depot_tools bootstraps its own copy of virtualenv. This fails on # Depot_tools brings its own Python and bootstraps virtualenv. The
# windows when multiple versions of python are in present in PATH, # latter fails on windows when unused versions of Python are in present
# so we remove all but the first one. # in PATH, so we remove those.
# 🤯 Removing items from PATH does not seem possible on Github Actions, # 🤯 Removing items from PATH does not seem possible on Github Actions,
# not even by using `echo ::set-env name=PATH`, so we have to rename # not even by using `echo ::set-env name=PATH`, so we have to rename
# or delete the actual Python directories. # or delete the actual Python directories.
@ -36,7 +36,6 @@ jobs:
run: |- run: |-
$env:PATH -split ";" | $env:PATH -split ";" |
Where-Object { Test-Path "$_\python.exe" } | Where-Object { Test-Path "$_\python.exe" } |
Select-Object -Skip 1 |
ForEach-Object { Move-Item "$_" "$_.disabled" } ForEach-Object { Move-Item "$_" "$_.disabled" }
- name: Environment (common) - name: Environment (common)
@ -44,10 +43,6 @@ jobs:
- name: Environment (linux) - name: Environment (linux)
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
# In order to test the installer scripts in std we need a deno
# executable in the path. See
# https://github.com/denoland/deno/blob/27cd2c97f18c0392bc04c66b786717b2bc677315/std/installer/mod.ts#L185-L193
# TODO(ry) This path modification should rather be done in "cargo test".
run: | run: |
curl -LO https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz curl -LO https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz
tar -xzvf sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz tar -xzvf sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz
@ -88,4 +83,7 @@ jobs:
rustup component add clippy rustup component add clippy
cargo clippy --all-targets --release --locked -- -D clippy::all cargo clippy --all-targets --release --locked -- -D clippy::all
- name: Stop sccache
run: sccache --stop-server
# TODO cpplint # TODO cpplint