Skip to content

Commit

Permalink
Speed up artifact handling between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
yousseb authored Oct 23, 2023
1 parent 5a32a73 commit 0e5a9e9
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ jobs:
echo Building in $HOME/gtk/inst
cd osx && /bin/bash ./build_env.sh
- name: Compress Environment
working-directory: /
shell: 'bash'
run: |
tar -czf $GITHUB_WORKSPACE/environment.tar.gz $HOME/gtk $HOME/.new_local
- name: Upload Environment
uses: actions/upload-artifact@v3.1.3
with:
name: Environment
path: |
/Users/runner/gtk
/Users/runner/.new_local
$GITHUB_WORKSPACE/environment.tar.gz
build-app:
name: Build Application
Expand All @@ -58,7 +63,15 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v2.1.1

- name: Extract Environment
working-directory: /
shell: 'bash'
run: |
tar -xzf $GITHUB_WORKSPACE/environment.tar.gz
rm -f $GITHUB_WORKSPACE/environment.tar.gz
- name: FIX gir
run: |
cd osx && /bin/bash ./fix_gir.sh
Expand All @@ -69,4 +82,4 @@ jobs:
- name: Install GTK Theme
run: |
cd osx && /bin/bash ./build_gtk_theme.sh
cd osx && /bin/bash ./build_gtk_theme.sh

0 comments on commit 0e5a9e9

Please sign in to comment.