From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 86E49A09FF; Tue, 5 Jan 2021 15:09:56 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 120B9160863; Tue, 5 Jan 2021 15:09:56 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 5E72A160862 for ; Tue, 5 Jan 2021 15:09:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609855793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R9LzyCnd9+0X7x5H9i86WtwlUE6saSeflLnoX4YT3a8=; b=CsPqEDSr4Y1laE/0SjO2P3lYATeY63gzSSWL45TVVSIsyphdln2SVKe1aZIKWBzR3vWn65 9Zt/OB4dVYgsPGMOh5AbGDgSOW5xQvigC7cp6FGa3kx3cTPC7q6wORe1TDPD541nVpLBXy cW7yZnOPIaHFtOIvOLtC5rTbSBcInr4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-165-o_EXdOgFOUm8mWKXZggJhQ-1; Tue, 05 Jan 2021 09:09:50 -0500 X-MC-Unique: o_EXdOgFOUm8mWKXZggJhQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 42684801817; Tue, 5 Jan 2021 14:09:49 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-113-60.rdu2.redhat.com [10.10.113.60]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C47015D6CF; Tue, 5 Jan 2021 14:09:45 +0000 (UTC) From: Aaron Conole To: David Marchand Cc: dev@dpdk.org, Michael Santana , Thomas Monjalon References: <20210105121625.8863-1-david.marchand@redhat.com> Date: Tue, 05 Jan 2021 09:09:44 -0500 In-Reply-To: <20210105121625.8863-1-david.marchand@redhat.com> (David Marchand's message of "Tue, 5 Jan 2021 13:16:25 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Subject: Re: [dpdk-dev] [PATCH] ci: fix default ccache in GitHub Actions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" David Marchand writes: > 'main' might not be the default branch name. > > Fixes: 87009585e293 ("ci: hook to GitHub Actions") > > Signed-off-by: David Marchand > --- > I found no other option but to call to the remote repository since github > does not seem to expose a HEAD symbolic reference. Ugh... I thought I had set it to 'main' during DPDKs transition, but seems I didn't (guess it was just an oversight on my part - sorry). > The other alternative would be to simply rename ovsrobot/dpdk default > branch from 'master' to 'main'. I will do that rename anyway - it should be consistent. > Example: https://github.com/ovsrobot/dpdk/runs/1641274373?check_suite_focus=true#step:4:4 > > --- > .github/workflows/build.yml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml > index 0b72df0ebe..751eb82c16 100644 > --- a/.github/workflows/build.yml > +++ b/.github/workflows/build.yml > @@ -67,13 +67,15 @@ jobs: > echo 'libabigail-${{ matrix.config.os }}' > echo -n '::set-output name=abi::' > echo 'abi-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-${{ env.LIBABIGAIL_VERSION }}-${{ env.REF_GIT_TAG }}' > + echo -n '::set-output name=default_branch::' > + git ls-remote --symref origin HEAD |awk '/^ref:/ {print $2}' > - name: Retrieve ccache cache > uses: actions/cache@v2 > with: > path: ~/.ccache > key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }} > restore-keys: | > - ${{ steps.get_ref_keys.outputs.ccache }}-refs/heads/main > + ${{ steps.get_ref_keys.outputs.ccache }}-${{ steps.get_ref_keys.outputs.default_branch }} > - name: Retrieve libabigail cache > id: libabigail-cache > uses: actions/cache@v2