Skip to content

Commit a8baf50

Browse files
committed
ci: use container for ubuntu images
1 parent 9d1c5d9 commit a8baf50

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
build-ubuntu:
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 20
26+
container:
27+
image: ubuntu:20.04
28+
options: "--user 0"
2629
steps:
2730
- uses: actions/checkout@v3
2831
with:
@@ -77,6 +80,9 @@ jobs:
7780
build-win32:
7881
runs-on: ubuntu-latest
7982
timeout-minutes: 20
83+
container:
84+
image: ubuntu:20.04
85+
options: "--user 0"
8086
steps:
8187
- uses: actions/checkout@v3
8288
with:
@@ -203,11 +209,19 @@ jobs:
203209
needs: [build-ubuntu, build-win32, build-macos, build-pfsfuse-win32]
204210
runs-on: ubuntu-latest
205211
timeout-minutes: 20
212+
container:
213+
image: ubuntu:20.04
214+
options: "--user 0"
206215
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master'
207216
steps:
208217
- name: Download all artifact
209218
uses: actions/download-artifact@v4
210219

220+
- name: Install build dependancies
221+
run: |
222+
sudo apt-get update
223+
sudo apt-get install p7zip-full
224+
211225
- name: Prepare artifacts for release
212226
run: |
213227
7z a -tzip pfsshell-ubuntu.zip pfsshell-ubuntu/*

0 commit comments

Comments
 (0)