Fix monero_c Gitea workflow regressions
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
||||
target:
|
||||
- name: x86_64 Linux
|
||||
host: x86_64-linux-gnu
|
||||
packages: automake autotools-dev build-essential ca-certificates ccache clang cmake curl git libssl-dev libtool pkg-config python3
|
||||
packages: automake autotools-dev build-essential ca-certificates ccache clang cmake curl git gperf libssl-dev libtool pkg-config python3
|
||||
- name: Win64
|
||||
host: x86_64-w64-mingw32
|
||||
packages: automake autotools-dev build-essential ca-certificates ccache clang cmake curl git libssl-dev libtool pkg-config python3 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
||||
|
||||
@@ -45,31 +45,6 @@ jobs:
|
||||
fetch-depth: 1
|
||||
submodules: false
|
||||
|
||||
- name: Configure Gitea auth for private submodules
|
||||
env:
|
||||
MONERO_C_GITEA_PAT: ${{ secrets.MONERO_C_GITEA_PAT }}
|
||||
PEYA_GITEA_PAT: ${{ secrets.PEYA_GITEA_PAT }}
|
||||
GITEA_PAT: ${{ secrets.GITEA_PAT }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
AUTH_TOKEN="${MONERO_C_GITEA_PAT:-${PEYA_GITEA_PAT:-${GITEA_PAT:-}}}"
|
||||
|
||||
if [ -z "${AUTH_TOKEN}" ]; then
|
||||
echo "Missing Gitea PAT secret for private submodules"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git config --global url."http://tiamak:${AUTH_TOKEN}@54.38.205.168:3000/".insteadOf "http://54.38.205.168:3000/"
|
||||
git submodule sync
|
||||
git -c protocol.version=2 submodule update --init --force monero salvium peya
|
||||
git -C monero submodule sync --recursive
|
||||
git -C salvium submodule sync --recursive
|
||||
git -C peya submodule sync --recursive
|
||||
git -C monero -c protocol.version=2 submodule update --init --force --recursive
|
||||
git -C salvium -c protocol.version=2 submodule update --init --force --recursive
|
||||
git -C peya -c protocol.version=2 submodule update --init --force --recursive
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: https://github.com/subosito/flutter-action@v2
|
||||
with:
|
||||
|
||||
@@ -132,7 +132,7 @@ jobs:
|
||||
target:
|
||||
- name: x86_64 Linux
|
||||
host: x86_64-linux-gnu
|
||||
packages: automake autotools-dev build-essential ca-certificates ccache clang cmake curl git libssl-dev libtool pkg-config python3
|
||||
packages: automake autotools-dev build-essential ca-certificates ccache clang cmake curl git gperf libssl-dev libtool pkg-config python3
|
||||
- name: Win64
|
||||
host: x86_64-w64-mingw32
|
||||
packages: automake autotools-dev build-essential ca-certificates ccache clang cmake curl git libssl-dev libtool pkg-config python3 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
||||
@@ -224,17 +224,7 @@ jobs:
|
||||
|
||||
for asset in "${files[@]}"; do
|
||||
asset_name="$(basename "${asset}")"
|
||||
existing_id="$(ASSET_NAME="${asset_name}" python3 - <<'PY'
|
||||
import json, os
|
||||
name = os.environ["ASSET_NAME"]
|
||||
with open("/tmp/release-assets.json", "r", encoding="utf-8") as f:
|
||||
assets = json.load(f)
|
||||
for item in assets:
|
||||
if item.get("name") == name:
|
||||
print(item["id"])
|
||||
break
|
||||
PY
|
||||
)"
|
||||
existing_id="$(jq -r --arg name "${asset_name}" '.[] | select(.name == $name) | .id' /tmp/release-assets.json | head -n 1)"
|
||||
|
||||
if [ -n "${existing_id}" ]; then
|
||||
curl -sS \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
const String wallet2_api_c_h_sha256 = "5ccccf76d6ce6a38985030ed89ff49c8d688b7920c38b85e6072bad415e5c28f";
|
||||
const String wallet2_api_c_cpp_sha256 = "cfbc7bcfb8f8066660a2b19225249d6cc44958272c7816676a32c8ec37fedbda-10d687cab8b3f85d140c3d8cd9eb54b25f029154";
|
||||
const String wallet2_api_c_cpp_sha256 = "cfbc7bcfb8f8066660a2b19225249d6cc44958272c7816676a32c8ec37fedbda-fd1126fa7b476ab887502f63dd3ee565da4145a0";
|
||||
const String wallet2_api_c_exp_sha256 = "31b4f92a01ff4812c46e5978c0195f725fe93c87bcd8036391a12fe9d5774621";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const peyaChecksum = {
|
||||
wallet2_api_c_h_sha256: "5ccccf76d6ce6a38985030ed89ff49c8d688b7920c38b85e6072bad415e5c28f",
|
||||
wallet2_api_c_cpp_sha256: "cfbc7bcfb8f8066660a2b19225249d6cc44958272c7816676a32c8ec37fedbda-10d687cab8b3f85d140c3d8cd9eb54b25f029154",
|
||||
wallet2_api_c_cpp_sha256: "cfbc7bcfb8f8066660a2b19225249d6cc44958272c7816676a32c8ec37fedbda-fd1126fa7b476ab887502f63dd3ee565da4145a0",
|
||||
wallet2_api_c_exp_sha256: "31b4f92a01ff4812c46e5978c0195f725fe93c87bcd8036391a12fe9d5774621",
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef MONEROC_CHECKSUMS
|
||||
#define MONEROC_CHECKSUMS
|
||||
const char * PEYA_wallet2_api_c_h_sha256 = "5ccccf76d6ce6a38985030ed89ff49c8d688b7920c38b85e6072bad415e5c28f";
|
||||
const char * PEYA_wallet2_api_c_cpp_sha256 = "cfbc7bcfb8f8066660a2b19225249d6cc44958272c7816676a32c8ec37fedbda-10d687cab8b3f85d140c3d8cd9eb54b25f029154";
|
||||
const char * PEYA_wallet2_api_c_cpp_sha256 = "cfbc7bcfb8f8066660a2b19225249d6cc44958272c7816676a32c8ec37fedbda-fd1126fa7b476ab887502f63dd3ee565da4145a0";
|
||||
const char * PEYA_wallet2_api_c_exp_sha256 = "31b4f92a01ff4812c46e5978c0195f725fe93c87bcd8036391a12fe9d5774621";
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user