Skip to content

Commit

Permalink
Decreased the compression level to 15, simplified the yaml file a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekazakov committed Jan 22, 2024
1 parent 590c636 commit f5fdbf2
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ on: [push, workflow_dispatch]
env:
XC_VERSION: ${{ '15.1' }}
CCACHE_COMPRESS: "true"
CCACHE_COMPRESSLEVEL: "19"
CCACHE_COMPRESSLEVEL: "15"
CCACHE_MAXSIZE: "400M"
GH_TOKEN: ${{ github.token }}
BRANCH: ${{ github.ref }}

jobs:

Expand All @@ -19,16 +21,14 @@ jobs:
- name: Select latest Xcode
run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app"
- name: Install ccache
run: |
brew install ccache
which ccache
run: brew install ccache
- name: Cache ccache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/Library/Caches/ccache
key: ccache-${{ github.job }}-${{ matrix.configuration }}-${{ github.run_id }}
restore-keys: ccache-${{ github.job }}-${{ matrix.configuration }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build and run unit tests
run: "cd Scripts && ./run_all_unit_tests.sh ${{ matrix.configuration }}"
- name: Show ccache stats
Expand All @@ -38,26 +38,21 @@ jobs:
set +e
gh extension install actions/gh-actions-cache
gh actions-cache list -B $BRANCH --key ccache-${{ github.job }}-${{ matrix.configuration }}- | cut -f 1 | xargs -I {} gh actions-cache delete {} --confirm
env:
GH_TOKEN: ${{ github.token }}
BRANCH: ${{ github.ref }}
build-unsigned:
runs-on: macos-13
steps:
- name: Select latest Xcode
run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app"
- name: Install deps
run: |
brew install ccache
brew install create-dmg
run: brew install ccache && brew install create-dmg
- name: Cache ccache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/Library/Caches/ccache
key: ccache-${{ github.job }}-${{ github.run_id }}
restore-keys: ccache-${{ github.job }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build and package
run: "cd Scripts && ./build_unsigned.sh"
- name: Show ccache stats
Expand All @@ -67,9 +62,6 @@ jobs:
set +e
gh extension install actions/gh-actions-cache
gh actions-cache list -B $BRANCH --key ccache-${{ github.job }}- | cut -f 1 | xargs -I {} gh actions-cache delete {} --confirm
env:
GH_TOKEN: ${{ github.token }}
BRANCH: ${{ github.ref }}
- uses: actions/upload-artifact@v4
with:
name: nimble-commander-unsigned
Expand Down

0 comments on commit f5fdbf2

Please sign in to comment.