2828
2929 - uses : Swatinem/rust-cache@v2
3030
31- - name : Install Nextest
32- run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
33-
3431 - name : Install deps
3532 run :
3633 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
@@ -47,14 +44,21 @@ jobs:
4744 env :
4845 CARGO_FLAGS : --verbose --locked
4946 steps :
50- - name : Checkout code
47+ - name : Checkout code on PR
48+ # Workaround for the running out of disk space issue. See https://github.com/actions/runner-images/issues/1341
5149 run : |
52- echo ${{ github.event.repository.url }}
53- echo ${{ github.event.pull_request.head.sha }}
5450 mkdir C:\\${{ github.event.repository.name }}
5551 git clone -n -v --progress https://github.com/input-output-hk/${{ github.event.repository.name }}.git C:\\${{ github.event.repository.name }}
5652 cd C:\\${{ github.event.repository.name }}
5753 git checkout ${{ github.event.pull_request.head.sha }}
54+ if : ${{ github.event_name == 'pull_request' }}
55+
56+ - name : Checkout code on push
57+ run : |
58+ mkdir C:\\${{ github.event.repository.name }}
59+ git clone -v --progress https://github.com/input-output-hk/${{ github.event.repository.name }}.git C:\\${{ github.event.repository.name }}
60+ cd C:\\${{ github.event.repository.name }}
61+ if : ${{ github.event_name == 'push' }}
5862
5963 - name : Allow long paths on Windows
6064 working-directory : " C:\\ ${{ github.event.repository.name }}"
@@ -64,16 +68,12 @@ jobs:
6468 git config --system core.longpaths true
6569
6670 - uses : Swatinem/rust-cache@v2
71+ with :
72+ workspaces : " C:\\ ${{ github.event.repository.name }}"
6773
6874 - name : Set default linker
6975 working-directory : " C:\\ ${{ github.event.repository.name }}"
70- run : rustup default stable-x86_64-pc-windows-gnu
71-
72- - name : Free disk space
73- working-directory : " C:\\ ${{ github.event.repository.name }}"
74- shell : powershell
75- run : |
76- Get-PSDrive
76+ run : rustup default stable-x86_64-pc-windows-msvc
7777
7878 - name : Install dependencies
7979 working-directory : " C:\\ ${{ github.event.repository.name }}"
@@ -85,13 +85,11 @@ jobs:
8585 shell : powershell
8686 run : |
8787 "PQ_LIB_DIR=${env:PROGRAMFILES}\PostgreSQL\14\lib" >> $env:GITHUB_ENV
88- - run : |
89- $env:PQ_LIB_DIR
9088
9189 - uses : actions-rs/toolchain@v1
9290 with :
9391 toolchain : " 1.65"
9492
9593 - name : Build on Windows
9694 working-directory : " C:\\ ${{ github.event.repository.name }}"
97- run : cargo build
95+ run : cargo build --workspace
0 commit comments