mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43: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)
|
name: Build (Windows)
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- uses: actions/checkout@v2
|
||||||
run: |
|
with:
|
||||||
mkdir c:/Repo
|
fetch-depth: 2
|
||||||
git clone https://github.com/${{ github.repository }} --depth 2 c:/Repo
|
- name: Copy to C drive
|
||||||
cd c:/Repo
|
run: cp D:\a C:\ -Recurse
|
||||||
git fetch origin ${{ github.ref }}
|
|
||||||
git checkout ${{ github.sha }}
|
|
||||||
- name: Bootstrap
|
- name: Bootstrap
|
||||||
working-directory: c:/Repo
|
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip virtualenv
|
python -m pip install --upgrade pip virtualenv
|
||||||
python mach fetch
|
python mach fetch
|
||||||
- name: Release build
|
- 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
|
run: python mach build --release --media-stack=dummy
|
||||||
- name: Unit tests
|
- 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
|
run: python mach test-unit --release
|
||||||
- name: Smoketest
|
- name: Smoketest
|
||||||
working-directory: c:/Repo
|
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||||
run: python mach smoketest --angle
|
run: python mach smoketest --angle
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
|
|
|
@ -49,9 +49,7 @@ def main():
|
||||||
f.write(render(
|
f.write(render(
|
||||||
'workflow.mako',
|
'workflow.mako',
|
||||||
total_chunks=20,
|
total_chunks=20,
|
||||||
GITHUB_REPOSITORY="${{ github.repository }}",
|
REPOSITORY_NAME="${{ github.event.repository.name }}",
|
||||||
GITHUB_REF="${{ github.ref }}",
|
|
||||||
GITHUB_SHA="${{ github.sha }}",
|
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,26 +19,24 @@ jobs:
|
||||||
name: Build (Windows)
|
name: Build (Windows)
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- uses: actions/checkout@v2
|
||||||
run: |
|
with:
|
||||||
mkdir c:/Repo
|
fetch-depth: 2
|
||||||
git clone https://github.com/${ GITHUB_REPOSITORY } --depth 2 c:/Repo
|
- name: Copy to C drive
|
||||||
cd c:/Repo
|
run: cp D:\a C:\ -Recurse
|
||||||
git fetch origin ${ GITHUB_REF }
|
|
||||||
git checkout ${ GITHUB_SHA }
|
|
||||||
- name: Bootstrap
|
- name: Bootstrap
|
||||||
working-directory: c:/Repo
|
working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }"
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip virtualenv
|
python -m pip install --upgrade pip virtualenv
|
||||||
python mach fetch
|
python mach fetch
|
||||||
- name: Release build
|
- name: Release build
|
||||||
working-directory: c:/Repo
|
working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }"
|
||||||
run: python mach build --release --media-stack=dummy
|
run: python mach build --release --media-stack=dummy
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
working-directory: c:/Repo
|
working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }"
|
||||||
run: python mach test-unit --release
|
run: python mach test-unit --release
|
||||||
- name: Smoketest
|
- name: Smoketest
|
||||||
working-directory: c:/Repo
|
working-directory: "C:\\a\\${ REPOSITORY_NAME }\\${ REPOSITORY_NAME }"
|
||||||
run: python mach smoketest --angle
|
run: python mach smoketest --angle
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue