Skip to content

Commit

Permalink
ci: move regression_check to full_check workflow, reuse artifact build
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Oct 14, 2024
1 parent de8c27c commit b1db21e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 53 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/full_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ jobs:
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('*/contrib/depends/packages/*.mk') }}
- name: build
run: |
./build_single.sh ${{ matrix.coin }} aarch64-host-apple-darwin -j$(sysctl -n hw.logicalcpu)
./build_single.sh ${{ matrix.coin }} aarch64-host-apple-darwin -j$(sysctl -n hw.logicalcpu)
- name: rename artifacts
run: |
mkdir release/gh/
Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('*/contrib/depends/packages/*.mk') }}
- name: build
run: |
./build_single.sh ${{ matrix.coin }} host-apple-ios -j$(sysctl -n hw.logicalcpu)
./build_single.sh ${{ matrix.coin }} host-apple-ios -j$(sysctl -n hw.logicalcpu)
- name: rename artifacts
run: |
mkdir release/gh/
Expand Down Expand Up @@ -586,6 +586,37 @@ jobs:
cd impls/monero.ts
deno run --unstable-ffi --allow-ffi checksum.ts
regression_check:
strategy:
matrix:
coin: [monero]
needs: [
lib_linux
]
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 gperf gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gcc-mingw-w64-i686 g++-mingw-w64-i686 wget xz-utils
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- uses: actions/download-artifact@v4
with:
name: linux monero
path: release/monero

- name: Run regression tests
run: deno test -A tests/

comment_pr:
name: comment on pr
runs-on: ubuntu-latest
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/regression.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ export async function getMoneroC(version: MoneroCVersion) {
const releaseDylibName = dylibName.slice("monero_".length);

if (version === "next") {
// build current release
await $
.raw`bash ./build_single.sh monero ${triple} -j${navigator.hardwareConcurrency}`;

await $.raw`xz -kd release/monero/${releaseDylibName}.xz`;
await $`mkdir -p tests/libs/next`;
await $`mv release/monero/${releaseDylibName} tests/libs/next/${endpointDylibName}`;
Expand Down

0 comments on commit b1db21e

Please sign in to comment.