|
@@ -233,7 +233,14 @@ jobs:
|
|
|
runs-on: ubuntu-20.04
|
|
|
env:
|
|
|
OPAMYES: 1
|
|
|
- steps:
|
|
|
+ steps:
|
|
|
+ - name: Login to GitHub Container Registry
|
|
|
+ uses: docker/login-action@v1
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+
|
|
|
- name: Install Earthly
|
|
|
run: sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly && /usr/local/bin/earthly bootstrap --with-autocomplete'
|
|
|
|
|
@@ -246,7 +253,7 @@ jobs:
|
|
|
run: echo "ADD_REVISION=1" >> $GITHUB_ENV
|
|
|
|
|
|
- name: Build
|
|
|
- run: earthly --platform=linux/amd64 +build --ADD_REVISION=$ADD_REVISION
|
|
|
+ run: earthly --platform=linux/amd64 --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +build --ADD_REVISION=$ADD_REVISION
|
|
|
|
|
|
- name: Upload artifact
|
|
|
uses: actions/[email protected]
|
|
@@ -261,7 +268,7 @@ jobs:
|
|
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
|
|
|
|
- name: Build xmldoc
|
|
|
- run: earthly +xmldoc --COMMIT=$GITHUB_SHA --BRANCH=${{ steps.extract_branch.outputs.branch }}
|
|
|
+ run: earthly --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +xmldoc --COMMIT=$GITHUB_SHA --BRANCH=${{ steps.extract_branch.outputs.branch }}
|
|
|
|
|
|
- name: Upload xmldoc artifact
|
|
|
uses: actions/[email protected]
|
|
@@ -274,6 +281,15 @@ jobs:
|
|
|
env:
|
|
|
OPAMYES: 1
|
|
|
steps:
|
|
|
+ - name: Login to GitHub Container Registry
|
|
|
+ uses: docker/login-action@v1
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ # https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
|
|
+ # github.repository_owner
|
|
|
+
|
|
|
- name: Set up QEMU
|
|
|
id: qemu
|
|
|
uses: docker/setup-qemu-action@v1
|
|
@@ -293,7 +309,7 @@ jobs:
|
|
|
run: echo "ADD_REVISION=1" >> $GITHUB_ENV
|
|
|
|
|
|
- name: Build
|
|
|
- run: earthly --platform=linux/arm64 +build --ADD_REVISION=$ADD_REVISION
|
|
|
+ run: earthly --platform=linux/arm64 --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +build --ADD_REVISION=$ADD_REVISION
|
|
|
|
|
|
- name: Upload artifact
|
|
|
uses: actions/[email protected]
|
|
@@ -616,6 +632,13 @@ jobs:
|
|
|
strategy:
|
|
|
fail-fast: false
|
|
|
steps:
|
|
|
+ - name: Login to GitHub Container Registry
|
|
|
+ uses: docker/login-action@v1
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+
|
|
|
- uses: actions/checkout@main
|
|
|
with:
|
|
|
submodules: recursive
|
|
@@ -632,11 +655,11 @@ jobs:
|
|
|
|
|
|
- name: Test
|
|
|
if: success() && !(matrix.SAUCE && matrix.SAUCE_ACCESS_KEY)
|
|
|
- run: earthly --platform=linux/amd64 +test-all
|
|
|
+ run: earthly --platform=linux/amd64 --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +test-all
|
|
|
|
|
|
- name: Test (with SauceLabs)
|
|
|
if: success() && matrix.SAUCE && matrix.SAUCE_ACCESS_KEY
|
|
|
- run: earthly --platform=linux/amd64 +test --TEST=js
|
|
|
+ run: earthly --platform=linux/amd64 --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +test --TEST=js
|
|
|
env:
|
|
|
SAUCE_ACCESS_KEY: matrix.SAUCE_ACCESS_KEY
|
|
|
|
|
@@ -648,6 +671,13 @@ jobs:
|
|
|
strategy:
|
|
|
fail-fast: false
|
|
|
steps:
|
|
|
+ - name: Login to GitHub Container Registry
|
|
|
+ uses: docker/login-action@v1
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+
|
|
|
- uses: actions/checkout@main
|
|
|
with:
|
|
|
submodules: recursive
|
|
@@ -664,11 +694,11 @@ jobs:
|
|
|
|
|
|
- name: Test
|
|
|
if: success() && !(matrix.SAUCE && matrix.SAUCE_ACCESS_KEY)
|
|
|
- run: earthly --platform=linux/arm64 +test-all
|
|
|
+ run: earthly --platform=linux/arm64 --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +test-all
|
|
|
|
|
|
- name: Test (with SauceLabs)
|
|
|
if: success() && matrix.SAUCE && matrix.SAUCE_ACCESS_KEY
|
|
|
- run: earthly --platform=linux/arm64 +test --TEST=js
|
|
|
+ run: earthly --platform=linux/arm64 --ci --remote-cache=ghcr.io/${{ github.repository }}:cache --push +test --TEST=js
|
|
|
env:
|
|
|
SAUCE_ACCESS_KEY: matrix.SAUCE_ACCESS_KEY
|
|
|
|