Skip to content

Commit

Permalink
Workflow optimization (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jan 24, 2024
1 parent cc4e8b1 commit 1054903
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/time-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ jobs:
- name: Build
run: cmake --build build --parallel ${{ env.CORES }}

- name: Upload build folder
- name: Archive build files
run: tar -czvf build.tar.gz build

- name: Upload build files
uses: actions/upload-artifact@v3
with:
name: 'build-${{ matrix.env.CC }}-${{ matrix.image.backend }}'
path: 'build'
path: 'build.tar.gz'
retention-days: 5

test:
Expand Down Expand Up @@ -119,12 +122,14 @@ jobs:
printf "\nrnpuser\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/rnpuser
printf "\nrnpuser\tsoft\tnproc\tunlimited\n" > /etc/security/limits.d/30-rnpuser.conf
- name: Download build folder
- name: Download build files
uses: actions/download-artifact@v3
with:
name: 'build-${{ matrix.env.CC }}-${{ matrix.image.backend }}'
path: 'build'
retention-days: 5
path: 'build.tar.gz'

- name: Extract build files
run: tar -xzvf build.tar.gz

- name: Test
run: |
Expand Down

0 comments on commit 1054903

Please sign in to comment.