mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-05 23:43:07 +00:00
fix(ci): use new caching for all stages, fix sha tool to work on both linux & mac (#1741)
This commit is contained in:
parent
e1e4ff3a38
commit
3b9acb3557
4
.github/workflows/ci-experimental.yml
vendored
4
.github/workflows/ci-experimental.yml
vendored
@ -65,7 +65,7 @@ jobs:
|
|||||||
- name: Get submodules hash
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
run: |
|
run: |
|
||||||
echo "hash=$(git submodule status | sha256sum | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache submodules
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -95,7 +95,7 @@ jobs:
|
|||||||
- name: Get submodules hash
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
run: |
|
run: |
|
||||||
echo "hash=$(git submodule status | sha256sum | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache submodules
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|||||||
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@ -70,20 +70,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Get submodules versions
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
echo "nim-hash=$(git rev-parse HEAD:vendor/nimbus-build-system)" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache nim
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor/nimbus-build-system/vendor/Nim/bin
|
path: |
|
||||||
key: ${{ runner.os }}-nim-${{ steps.submodules.outputs.nim-hash }}
|
vendor/
|
||||||
|
.git/modules
|
||||||
|
key: ${{ runner.os }}-vendor-modules-${{ steps.submodules.outputs.hash }}
|
||||||
|
|
||||||
- name: Build binaries
|
- name: Build binaries
|
||||||
run: make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 v2 tools
|
run: make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 v2 tools
|
||||||
@ -101,20 +100,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Get submodules versions
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
echo "nim-hash=$(git rev-parse HEAD:vendor/nimbus-build-system)" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache nim
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor/nimbus-build-system/vendor/Nim/bin
|
path: |
|
||||||
key: ${{ runner.os }}-nim-${{ steps.submodules.outputs.nim-hash }}
|
vendor/
|
||||||
|
.git/modules
|
||||||
|
key: ${{ runner.os }}-vendor-modules-${{ steps.submodules.outputs.hash }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 test2 testwakunode2
|
run: make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 test2 testwakunode2
|
||||||
@ -137,7 +135,7 @@ jobs:
|
|||||||
- name: Get submodules hash
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
run: |
|
run: |
|
||||||
echo "hash=$(git submodule status | sha256sum | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache submodules
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -167,7 +165,7 @@ jobs:
|
|||||||
- name: Get submodules hash
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
run: |
|
run: |
|
||||||
echo "hash=$(git submodule status | sha256sum | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache submodules
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|||||||
2
.github/workflows/release-assets.yml
vendored
2
.github/workflows/release-assets.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
|||||||
- name: Get submodules hash
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
run: |
|
run: |
|
||||||
echo "hash=$(git submodule status | sha256sum | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache submodules
|
- name: Cache submodules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user