From ef86edc4b4ed9748d5f2d0d034a42b9bbb0f1fe8 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 11 Aug 2021 17:56:09 -0700 Subject: [PATCH] Experiment with GitHub Actions: log in to gcloud. --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..caa87f1380 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + + ubuntu: + runs-on: ubuntu-latest + + strategy: + matrix: + include: + - { CC: gcc, CXX: g++ } + - { CC: clang, CXX: clang++ } + + steps: + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@master + with: + project_id: ${{ secrets.GCP_PROJECT_ID }} + service_account_key: ${{ secrets.GCP_SA_KEY }} + export_default_credentials: true + + - name: Use gcloud CLI + run: gcloud info