diff options
author | Josh Matthews <josh@joshmatthews.net> | 2021-03-06 12:41:51 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2021-03-06 12:44:29 -0500 |
commit | c66255ba5e308726f7e9ffcea85577e3c56bb206 (patch) | |
tree | cd968d8701ae419fa6a0b0080785273a18c73932 /etc | |
parent | 3f39dde189ff4f29ddd56d7f04a6e5be3cd61c0e (diff) | |
download | servo-c66255ba5e308726f7e9ffcea85577e3c56bb206.tar.gz servo-c66255ba5e308726f7e9ffcea85577e3c56bb206.zip |
Copy to C: on Windows instead of manually cloning.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ci/generate_workflow.py | 4 | ||||
-rw-r--r-- | etc/ci/workflow.mako | 20 |
2 files changed, 10 insertions, 14 deletions
diff --git a/etc/ci/generate_workflow.py b/etc/ci/generate_workflow.py index 9abf03e4784..92bb0e7faaa 100644 --- a/etc/ci/generate_workflow.py +++ b/etc/ci/generate_workflow.py @@ -49,9 +49,7 @@ def main(): f.write(render( 'workflow.mako', total_chunks=20, - GITHUB_REPOSITORY="${{ github.repository }}", - GITHUB_REF="${{ github.ref }}", - GITHUB_SHA="${{ github.sha }}", + REPOSITORY_NAME="${{ github.event.repository.name }}", )) diff --git a/etc/ci/workflow.mako b/etc/ci/workflow.mako index bd8f4c3bf45..abc2ae26be6 100644 --- a/etc/ci/workflow.mako +++ b/etc/ci/workflow.mako @@ -19,26 +19,24 @@ jobs: name: Build (Windows) runs-on: windows-2019 steps: - - name: Clone - run: | - mkdir c:/Repo - git clone https://github.com/${ GITHUB_REPOSITORY } --depth 2 c:/Repo - cd c:/Repo - git fetch origin ${ GITHUB_REF } - git checkout ${ GITHUB_SHA } + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - name: Copy to C drive + run: cp D:\a C:\ -Recurse - name: Bootstrap - working-directory: c:/Repo + working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }" run: | python -m pip install --upgrade pip virtualenv python mach fetch - name: Release build - working-directory: c:/Repo + working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }" run: python mach build --release --media-stack=dummy - name: Unit tests - working-directory: c:/Repo + working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }" run: python mach test-unit --release - name: Smoketest - working-directory: c:/Repo + working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }" run: python mach smoketest --angle build-mac: |