Copy to C: on Windows instead of manually cloning.

This commit is contained in:
Josh Matthews 2021-03-06 12:41:51 -05:00
parent 3f39dde189
commit c66255ba5e
3 changed files with 19 additions and 25 deletions

View file

@ -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:

View file

@ -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 }}",
))

View file

@ -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: