mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
Copy to C: on Windows instead of manually cloning.
This commit is contained in:
parent
3f39dde189
commit
c66255ba5e
3 changed files with 19 additions and 25 deletions
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
|
@ -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\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: |
|
||||
python -m pip install --upgrade pip virtualenv
|
||||
python mach fetch
|
||||
- name: Release build
|
||||
working-directory: c:/Repo
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach build --release --media-stack=dummy
|
||||
- name: Unit tests
|
||||
working-directory: c:/Repo
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach test-unit --release
|
||||
- name: Smoketest
|
||||
working-directory: c:/Repo
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach smoketest --angle
|
||||
|
||||
build-mac:
|
||||
|
|
|
@ -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 }}",
|
||||
))
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue