Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Firebase SDKを手動管理したらCIビルドが3分になった話 / reduce_ci_r...

uhooi
October 21, 2021

Firebase SDKを手動管理したらCIビルドが3分になった話 / reduce_ci_runtime

uhooi

October 21, 2021
Tweet

More Decks by uhooi

Other Decks in Programming

Transcript

  1. 02 Swift 製 CLI ツールのビルド時間改善 $ swift run -c release xcodegen

    generate $ swift build -c release --product xcodegen $ .build/release/xcodegen generate
  2. 02 Swift 製 CLI ツールのビルド時間改善 CLI_TOOLS_PACKAGE_PATH := Tools build-cli-tools: $(MAKE) build-cli-tool

    CLI_TOOL_NAME=xcodegen $(MAKE) build-cli-tool CLI_TOOL_NAME=mockolo build-cli-tool: swift build -c release \ --package-path ${CLI_TOOLS_PACKAGE_PATH} \ --product ${CLI_TOOL_NAME} Makefile
  3. 02 Swift 製 CLI ツールのビルド時間改善 - uses: actions/cache@v2 id: cli-tools-cache with:

    path: Tools/.build key: ${{ runner.os }}-spm-${{ hashFiles( '**/Tools/Package.resolved') }} restore-keys: ${{ runner.os }}-spm- - name: Build CLI tools managed by SwiftPM if: steps.cli-tools-cache.outputs.cache-hit != 'true' run: make build-cli-tools GitHub Actions
  4. 03 Firebase SDK のビルド時間改善 FIREBASE_VERSION := 8.8.0 download-firebase-sdk: curl -OL https://github.com/firebase/

    firebase-ios-sdk/releases/ download/${FIREBASE_VERSION}/ Firebase.zip unzip -o Firebase.zip -d Frameworks/ Makefile