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

View file

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

View file

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