Skip to content

Commit

Permalink
ci: Move resource fetch process to platform run
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubik65536 committed Mar 29, 2024
1 parent 9eca1ec commit f2d4886
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 32 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,7 @@ on:
- '.github/scripts/force_build.txt'

jobs:
retrieve-resources:
name: Retrieve resources required for building
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
- name: Copy GitHub specific scripts to git-root folder
run: cp -va ./.github/scripts/ ./
- name: Disable Spotlight
run: sudo mdutil -a -i off
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install coreutils
run: brew install coreutils
- name: Download and unpack required resources
run: ./github_fetch_resources.sh | tee -a github_actions_retrieve_resources.log
- name: List resources
run: ls -la
- name: Archive resources
run: ./github_pack_resources.sh | tee -a github_actions_retrieve_resources.log
- name: Upload resources
uses: actions/upload-artifact@v4
with:
name: ungoogled_chromium_macos_resources
path: upload_build_resources/

build:
needs: retrieve-resources
name: Build macOS binaries of Ungoogled Chromium
strategy:
matrix:
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,36 @@ on:
type: string

jobs:
retrieve-resources:
name: Retrieve resources required for building
runs-on: ${{ inputs.os }}
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
- name: Copy GitHub specific scripts to git-root folder
run: cp -va ./.github/scripts/ ./
- name: Disable Spotlight
run: sudo mdutil -a -i off
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install coreutils
run: brew install coreutils
- name: Download and unpack required resources
run: ./github_fetch_resources.sh | tee -a github_actions_retrieve_resources.log
- name: List resources
run: ls -la
- name: Archive resources
run: ./github_pack_resources.sh | tee -a github_actions_retrieve_resources.log
- name: Upload resources
uses: actions/upload-artifact@v4
with:
name: ungoogled_chromium_macos_resources_${{ inputs.arch }}
path: upload_build_resources/

build_job_01:
name: Start Building Ungoogled-Chromium for macOS
runs-on: ${{ inputs.os }}
Expand All @@ -36,7 +66,7 @@ jobs:
- name: Download resources
uses: actions/download-artifact@v4
with:
name: ungoogled_chromium_macos_resources
name: ungoogled_chromium_macos_resources_${{ inputs.arch }}
- name: Unpack resources
run: ./github_unpack_resources.sh
- name: List resources
Expand Down

0 comments on commit f2d4886

Please sign in to comment.