diff --git a/.github/composite/setup-cache/action.yml b/.github/composite/setup-cache/action.yml new file mode 100644 index 000000000..ff478ea80 --- /dev/null +++ b/.github/composite/setup-cache/action.yml @@ -0,0 +1,19 @@ +name: Set up Keyed Cache +description: Set up Keyed Cache + +runs: + using: composite + steps: + - name: Get Date for cache keying + id: get-date + run: | + echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT + shell: bash + + - name: Set up cache + uses: actions/cache@v4.0.0 + with: + path: ${{ env.CCACHE_BASEDIR }} + key: "${{ runner.os }}-${{ env.SCRIPT_NAME }}-${{ steps.get-date.outputs.date }}" + restore-keys: | + ${{ runner.os }}-${{ env.SCRIPT_NAME }}- diff --git a/.github/composite/setup-certificate-1p/action.yml b/.github/composite/setup-certificate-1p/action.yml new file mode 100644 index 000000000..0f7d05e3c --- /dev/null +++ b/.github/composite/setup-certificate-1p/action.yml @@ -0,0 +1,16 @@ +name: Set up mirror certificates +description: Set up mirror certificates + +runs: + using: composite + steps: + - name: Install 1Password CLI + uses: 1password/install-cli-action@v1 + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ env.OP_SERVICE_ACCOUNT_TOKEN }} + + - name: Update SSL Certificates from 1Password + run: | + op document get --output expensify.ca.crt expensify.ca.crt && sudo cp expensify.ca.crt /usr/local/share/ca-certificates/expensify.ca.crt + sudo update-ca-certificates + shell: bash diff --git a/.github/workflows/bedrock.yml b/.github/workflows/bedrock.yml index 8a7285ce1..78d9eb284 100644 --- a/.github/workflows/bedrock.yml +++ b/.github/workflows/bedrock.yml @@ -17,13 +17,13 @@ env: TRAVIS_BRANCH: ${{ github.ref_name }} CXX: g++-13 CC=gcc-13 jobs: - Create_Auth_Binary: - name: "Create Auth Binary" + Run_Bedrock_Tests: + name: "Create Bedrock and Test" runs-on: ubuntu-20.04-v64 # The biggest and best for my baby timeout-minutes: 30 steps: - - name: Checkout Auth + - name: Checkout Bedrock uses: actions/checkout@v4.1.0 - name: Get Date for cache