Skip to content

Commit

Permalink
copy all release files into docker, update actions to node20
Browse files Browse the repository at this point in the history
  • Loading branch information
DevopsGoth authored May 23, 2024
1 parent 39df909 commit eab2ec9
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .github/workflows/applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
chainweb-network-version: ${{ steps.compile-flags.outputs.chainweb-network-version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Git revision infos
id: git-info
run: |
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
- name: Sync chain database from S3
run: aws s3 sync "$DB_SNAPSHOT_URI" db/0/rocksDb --delete --exclude=LOCK
- name: Store chain database as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: chain-db-${{ needs.config.outputs.chainweb-network-version }}
path: db
Expand All @@ -211,7 +211,7 @@ jobs:
steps:
# Setup
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# This only works if also the times of the cache are adjusted accordingly
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
id: cache-date
run: |
echo "value=$(date +%Y.%j)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Cache dist-newstyle
with:
path: |
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
diff -w <(git show HEAD:cabal.project.freeze) cabal.project.freeze || true
- name: Sync from cabal cache
if: env.USE_CABAL_CACHE == 'true'
uses: larskuhtz/cabal-cache-action@018b7ae0c480ba3dc4fa0cfa3a0bc1f05b7724b3
uses: larskuhtz/cabal-cache-action@a0f263d898dd246217960262caa1d381cf066e9a
with:
bucket: "kadena-cabal-cache"
region: "us-east-1"
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
tar -C ./artifacts/ -czf "$ARTIFACTS_ARCHIVE" chainweb
ls ./artifacts
- name: Safe artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: ${{ env.ARTIFACTS_ARCHIVE }}
Expand All @@ -396,9 +396,9 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.config.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: .
Expand Down Expand Up @@ -430,9 +430,9 @@ jobs:
BENCH_FOLDER: chainweb-benchmark-results/${{ matrix.ghc }}/${{ matrix.os }}
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: .
Expand Down Expand Up @@ -463,14 +463,14 @@ jobs:
env:
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download ${{ needs.config.outputs.chainweb-network-version }} chain database artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: chain-db-${{ needs.config.outputs.chainweb-network-version }}
path: db
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: .
Expand Down Expand Up @@ -554,9 +554,9 @@ jobs:
TEST_RESULT_FOLDER: chainweb-test-results/ghc-${{ matrix.ghc }}/${{ matrix.os }}
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: .
Expand Down Expand Up @@ -602,7 +602,7 @@ jobs:
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: .
Expand Down Expand Up @@ -637,7 +637,7 @@ jobs:

steps:
- name: Get build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACTS_NAME }}
path: .
Expand Down Expand Up @@ -677,16 +677,7 @@ jobs:
EOF
ENV LANG=en_US.UTF-8
WORKDIR /chainweb
COPY chainweb/chainweb-node .
COPY chainweb/chainweb-tests .
COPY chainweb/cwtool .
COPY chainweb/LICENSE .
COPY chainweb/README.md .
COPY chainweb/CHANGELOG.md .
COPY chainweb/chainweb.cabal .
COPY chainweb/cabal.project .
COPY chainweb/cabal.project.local .
COPY chainweb/cabal.project.freeze .
COPY chainweb/* .
STOPSIGNAL SIGTERM
ENTRYPOINT [ "/chainweb/chainweb-node" ]
DEOF
Expand Down Expand Up @@ -717,7 +708,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down

0 comments on commit eab2ec9

Please sign in to comment.