From 0e5a9e9288deab22294800838647b904ae9fc61d Mon Sep 17 00:00:00 2001 From: "Youssef A. Abukwaik" Date: Sun, 22 Oct 2023 19:47:48 -0700 Subject: [PATCH] Speed up artifact handling between jobs --- .github/workflows/main.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d08b11e..d7c6b7e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -69,4 +82,4 @@ jobs: - name: Install GTK Theme run: | - cd osx && /bin/bash ./build_gtk_theme.sh \ No newline at end of file + cd osx && /bin/bash ./build_gtk_theme.sh