GitHub actions v4 (#1991)

* Upgrade github actions to v4

* Fix copyright year
This commit is contained in:
andri lim 2024-01-27 20:34:11 +07:00 committed by GitHub
parent a39b51e3e1
commit 94eda1f3e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 107 additions and 67 deletions

View File

@ -1,5 +1,5 @@
# Nimbus # Nimbus
# Copyright (c) 2020-2023 Status Research & Development GmbH # Copyright (c) 2020-2024 Status Research & Development GmbH
# Licensed under either of # Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0) # http://www.apache.org/licenses/LICENSE-2.0)
@ -76,7 +76,7 @@ jobs:
runs-on: ${{ matrix.builder }} runs-on: ${{ matrix.builder }}
steps: steps:
- name: Checkout nimbus-eth1 - name: Checkout nimbus-eth1
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Derive environment variables - name: Derive environment variables
run: | run: |
@ -150,7 +150,7 @@ jobs:
- name: Restore rocksdb from cache (Macos/Linux) - name: Restore rocksdb from cache (Macos/Linux)
if: runner.os != 'Windows' if: runner.os != 'Windows'
id: rocksdb-cache id: rocksdb-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: rocks-db-cache-${{ matrix.target.cpu }} path: rocks-db-cache-${{ matrix.target.cpu }}
key: 'rocksdb-v2-${{ matrix.target.os }}-${{ matrix.target.cpu }}' key: 'rocksdb-v2-${{ matrix.target.os }}-${{ matrix.target.cpu }}'
@ -180,7 +180,7 @@ jobs:
- name: Restore llvm-mingw (Windows) from cache - name: Restore llvm-mingw (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-mingw-cache id: windows-mingw-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/mingw-${{ matrix.target.cpu }} path: external/mingw-${{ matrix.target.cpu }}
key: 'mingw-llvm-17-${{ matrix.target.cpu }}' key: 'mingw-llvm-17-${{ matrix.target.cpu }}'
@ -188,7 +188,7 @@ jobs:
- name: Restore Nim DLLs dependencies (Windows) from cache - name: Restore Nim DLLs dependencies (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-dlls-cache id: windows-dlls-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/dlls-${{ matrix.target.cpu }} path: external/dlls-${{ matrix.target.cpu }}
# according to docu, idle caches are kept for up to 7 days # according to docu, idle caches are kept for up to 7 days
@ -250,7 +250,7 @@ jobs:
- name: Restore prebuilt Nim from cache - name: Restore prebuilt Nim from cache
id: nim-cache id: nim-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinCache path: NimBinCache
key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}-${{ matrix.target.evmc }}' key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}-${{ matrix.target.evmc }}'
@ -314,7 +314,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 2 # In PR, has extra merge commit: ^1 = PR, ^2 = base fetch-depth: 2 # In PR, has extra merge commit: ^1 = PR, ^2 = base

View File

@ -1,5 +1,5 @@
# Fluffy # Fluffy
# Copyright (c) 2021-2023 Status Research & Development GmbH # Copyright (c) 2021-2024 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -43,7 +43,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
steps: steps:
- name: Checkout nimbus-eth1 - name: Checkout nimbus-eth1
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install modprobe - name: Install modprobe
run: | run: |
@ -65,7 +65,7 @@ jobs:
- name: Restore prebuilt Nim binaries from cache - name: Restore prebuilt Nim binaries from cache
id: nim-cache id: nim-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinaries path: NimBinaries
key: 'nim-linux-amd64-${{ steps.versions.outputs.nimbus_build_system }}-fluffy' key: 'nim-linux-amd64-${{ steps.versions.outputs.nimbus_build_system }}-fluffy'
@ -133,7 +133,7 @@ jobs:
runs-on: ${{ matrix.builder }} runs-on: ${{ matrix.builder }}
steps: steps:
- name: Checkout nimbus-eth1 - name: Checkout nimbus-eth1
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Derive environment variables - name: Derive environment variables
run: | run: |
@ -194,7 +194,7 @@ jobs:
- name: Restore llvm-mingw (Windows) from cache - name: Restore llvm-mingw (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-mingw-cache id: windows-mingw-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/mingw-${{ matrix.target.cpu }} path: external/mingw-${{ matrix.target.cpu }}
key: 'mingw-llvm-17-${{ matrix.target.cpu }}' key: 'mingw-llvm-17-${{ matrix.target.cpu }}'
@ -202,7 +202,7 @@ jobs:
- name: Restore Nim DLLs dependencies (Windows) from cache - name: Restore Nim DLLs dependencies (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-dlls-cache id: windows-dlls-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/dlls-${{ matrix.target.cpu }} path: external/dlls-${{ matrix.target.cpu }}
key: 'dlls-${{ matrix.target.cpu }}-fluffy' key: 'dlls-${{ matrix.target.cpu }}-fluffy'
@ -253,7 +253,7 @@ jobs:
- name: Restore prebuilt Nim binaries from cache - name: Restore prebuilt Nim binaries from cache
id: nim-cache id: nim-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinaries path: NimBinaries
key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}-fluffy' key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}-fluffy'

View File

@ -1,5 +1,5 @@
# Fluffy # Fluffy
# Copyright (c) 2023 Status Research & Development GmbH # Copyright (c) 2023-2024 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -26,7 +26,7 @@ jobs:
with: with:
python-version: 3.x python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3 - uses: actions/cache@v4
with: with:
key: mkdocs-material-${{ env.cache_id }} key: mkdocs-material-${{ env.cache_id }}
path: .cache path: .cache

View File

@ -1,5 +1,5 @@
# Fluffy # Fluffy
# Copyright (c) 2023 Status Research & Development GmbH # Copyright (c) 2023-2024 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:

View File

@ -1,3 +1,13 @@
# Nimbus
# Copyright (c) 2020-2024 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
name: Nightly build name: Nightly build
on: on:
schedule: schedule:
@ -10,7 +20,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
@ -29,7 +39,7 @@ jobs:
echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_amd64_archive name: Linux_amd64_archive
path: | path: |
@ -38,7 +48,7 @@ jobs:
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_amd64_checksum name: Linux_amd64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -57,7 +67,7 @@ jobs:
sudo apt-get -qq -y install binfmt-support qemu-user-static sudo apt-get -qq -y install binfmt-support qemu-user-static
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
@ -76,7 +86,7 @@ jobs:
echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_arm64_archive name: Linux_arm64_archive
path: | path: |
@ -85,7 +95,7 @@ jobs:
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_arm64_checksum name: Linux_arm64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -96,7 +106,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
@ -115,7 +125,7 @@ jobs:
echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Windows_amd64_archive name: Windows_amd64_archive
path: | path: |
@ -124,7 +134,7 @@ jobs:
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Windows_amd64_checksum name: Windows_amd64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -135,7 +145,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
@ -154,7 +164,7 @@ jobs:
echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_amd64_archive name: macOS_amd64_archive
path: | path: |
@ -163,7 +173,7 @@ jobs:
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_amd64_checksum name: macOS_amd64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -174,7 +184,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
@ -193,7 +203,7 @@ jobs:
echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_arm64_archive name: macOS_arm64_archive
path: | path: |
@ -202,7 +212,7 @@ jobs:
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_arm64_checksum name: macOS_arm64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -214,12 +224,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Download artefacts - name: Download artefacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
- name: Create release notes - name: Create release notes
run: | run: |

View File

@ -1,3 +1,13 @@
# Nimbus
# Copyright (c) 2021-2024 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
name: Nimbus verified proxy CI name: Nimbus verified proxy CI
on: on:
push: push:
@ -56,7 +66,7 @@ jobs:
runs-on: ${{ matrix.builder }} runs-on: ${{ matrix.builder }}
steps: steps:
- name: Checkout nimbus-eth1 - name: Checkout nimbus-eth1
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Derive environment variables - name: Derive environment variables
run: | run: |
@ -118,7 +128,7 @@ jobs:
- name: Restore llvm-mingw (Windows) from cache - name: Restore llvm-mingw (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-mingw-cache id: windows-mingw-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/mingw-${{ matrix.target.cpu }} path: external/mingw-${{ matrix.target.cpu }}
key: 'mingw-llvm-17-${{ matrix.target.cpu }}' key: 'mingw-llvm-17-${{ matrix.target.cpu }}'
@ -126,7 +136,7 @@ jobs:
- name: Restore Nim DLLs dependencies (Windows) from cache - name: Restore Nim DLLs dependencies (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-dlls-cache id: windows-dlls-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/dlls-${{ matrix.target.cpu }} path: external/dlls-${{ matrix.target.cpu }}
key: 'dlls-${{ matrix.target.cpu }}-verified-proxy' key: 'dlls-${{ matrix.target.cpu }}-verified-proxy'
@ -177,7 +187,7 @@ jobs:
- name: Restore prebuilt Nim from cache - name: Restore prebuilt Nim from cache
id: nim-cache id: nim-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinCache path: NimBinCache
key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}-verified-proxy' key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}-verified-proxy'

View File

@ -1,3 +1,13 @@
# Nimbus
# Copyright (c) 2020-2024 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
on: on:
push: push:
tags: tags:
@ -11,7 +21,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Build project - name: Build project
id: make_dist id: make_dist
run: | run: |
@ -22,13 +32,13 @@ jobs:
echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_amd64_archive name: Linux_amd64_archive
path: ./dist/${{ steps.make_dist.outputs.archive }} path: ./dist/${{ steps.make_dist.outputs.archive }}
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_amd64_checksum name: Linux_amd64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -61,7 +71,7 @@ jobs:
sudo apt-get -qq update sudo apt-get -qq update
sudo apt-get -qq -y install binfmt-support qemu-user-static sudo apt-get -qq -y install binfmt-support qemu-user-static
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Build project - name: Build project
id: make_dist id: make_dist
run: | run: |
@ -72,13 +82,13 @@ jobs:
echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_arm64_archive name: Linux_arm64_archive
path: ./dist/${{ steps.make_dist.outputs.archive }} path: ./dist/${{ steps.make_dist.outputs.archive }}
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Linux_arm64_checksum name: Linux_arm64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -105,7 +115,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Build project - name: Build project
id: make_dist id: make_dist
run: | run: |
@ -116,13 +126,13 @@ jobs:
echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Windows_amd64_archive name: Windows_amd64_archive
path: ./dist/${{ steps.make_dist.outputs.archive }} path: ./dist/${{ steps.make_dist.outputs.archive }}
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Windows_amd64_checksum name: Windows_amd64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -132,7 +142,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Build project - name: Build project
id: make_dist id: make_dist
run: | run: |
@ -143,13 +153,13 @@ jobs:
echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_amd64_archive name: macOS_amd64_archive
path: ./dist/${{ steps.make_dist.outputs.archive }} path: ./dist/${{ steps.make_dist.outputs.archive }}
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_amd64_checksum name: macOS_amd64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -159,7 +169,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Build project - name: Build project
id: make_dist id: make_dist
run: | run: |
@ -170,13 +180,13 @@ jobs:
echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT echo "archive_dir=${ARCHIVE%.tar.gz}" >> $GITHUB_OUTPUT
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus.sha512sum
- name: Upload archive artefact - name: Upload archive artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_arm64_archive name: macOS_arm64_archive
path: ./dist/${{ steps.make_dist.outputs.archive }} path: ./dist/${{ steps.make_dist.outputs.archive }}
retention-days: 2 retention-days: 2
- name: Upload checksum artefact - name: Upload checksum artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macOS_arm64_checksum name: macOS_arm64_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus.sha512sum
@ -187,7 +197,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download artefacts - name: Download artefacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
- name: Create release notes - name: Create release notes
run: | run: |
cat > release_notes.md <<EOF cat > release_notes.md <<EOF

View File

@ -1,3 +1,13 @@
# Nimbus
# Copyright (c) 2021-2024 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
name: Simulators name: Simulators
on: on:
schedule: schedule:
@ -11,7 +21,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get latest nimbus-build-system commit hash - name: Get latest nimbus-build-system commit hash
id: versions id: versions
@ -25,7 +35,7 @@ jobs:
echo "nimbus_build_system=$nbsHash" >> $GITHUB_OUTPUT echo "nimbus_build_system=$nbsHash" >> $GITHUB_OUTPUT
- name: Restore prebuilt Nim from cache - name: Restore prebuilt Nim from cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinaries path: NimBinaries
key: 'nim-linux-amd64-${{ steps.versions.outputs.nimbus_build_system }}-sim' key: 'nim-linux-amd64-${{ steps.versions.outputs.nimbus_build_system }}-sim'
@ -43,7 +53,7 @@ jobs:
${SIM_SCRIPT} "Linux-amd64" ${SIM_SCRIPT} "Linux-amd64"
- name: Upload artefact - name: Upload artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: linux_amd64_stat name: linux_amd64_stat
path: ./simulators.md path: ./simulators.md
@ -54,7 +64,7 @@ jobs:
runs-on: macos-11 runs-on: macos-11
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get latest nimbus-build-system commit hash - name: Get latest nimbus-build-system commit hash
id: versions id: versions
@ -66,7 +76,7 @@ jobs:
echo "nimbus_build_system=$nbsHash" >> $GITHUB_OUTPUT echo "nimbus_build_system=$nbsHash" >> $GITHUB_OUTPUT
- name: Restore prebuilt Nim from cache - name: Restore prebuilt Nim from cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinaries path: NimBinaries
key: 'nim-macos-amd64-${{ steps.versions.outputs.nimbus_build_system }}-sim' key: 'nim-macos-amd64-${{ steps.versions.outputs.nimbus_build_system }}-sim'
@ -84,7 +94,7 @@ jobs:
${SIM_SCRIPT} "MacOS-amd64" ${SIM_SCRIPT} "MacOS-amd64"
- name: Upload artefact - name: Upload artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: macos_amd64_stat name: macos_amd64_stat
path: ./simulators.md path: ./simulators.md
@ -98,12 +108,12 @@ jobs:
shell: bash shell: bash
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Restore llvm-mingw (Windows) from cache - name: Restore llvm-mingw (Windows) from cache
if: runner.os == 'Windows' if: runner.os == 'Windows'
id: windows-mingw-cache id: windows-mingw-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: external/mingw-amd64 path: external/mingw-amd64
key: 'mingw-llvm-17-sim' key: 'mingw-llvm-17-sim'
@ -136,7 +146,7 @@ jobs:
echo "nimbus_build_system=$nbsHash" >> $GITHUB_OUTPUT echo "nimbus_build_system=$nbsHash" >> $GITHUB_OUTPUT
- name: Restore prebuilt Nim from cache - name: Restore prebuilt Nim from cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: NimBinaries path: NimBinaries
key: 'nim-windows-amd64-${{ steps.versions.outputs.nimbus_build_system }}-sim' key: 'nim-windows-amd64-${{ steps.versions.outputs.nimbus_build_system }}-sim'
@ -153,7 +163,7 @@ jobs:
${SIM_SCRIPT} "Windows-amd64" ${SIM_SCRIPT} "Windows-amd64"
- name: Upload artefact - name: Upload artefact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: windows_amd64_stat name: windows_amd64_stat
path: ./simulators.md path: ./simulators.md
@ -165,12 +175,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: master ref: master
- name: Download artefacts - name: Download artefacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
- name: Create statistics notes - name: Create statistics notes
run: | run: |