Skip to content

Commit

Permalink
merge with origin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso committed Feb 13, 2024
2 parents 756658e + 5f0a6c8 commit bc4c7c7
Show file tree
Hide file tree
Showing 77 changed files with 1,133 additions and 658 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def read_tables(file):
for col in current.columns:
x = row[col]
base = main.loc[idx, col]
d = (x - base) / base * 100
if base == 0:
d = 0
else:
d = (x - base) / base * 100
if d < 0:
result.loc[idx, col] = f"{x:_} ($\\textcolor{{green}}{{{d:.2f}\\\\%}}$)"
elif d > 0:
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ on:

jobs:
perf:
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
fail-fast: false
env:
DFX_VERSION: 0.14.3
IC_REPL_VERSION: 0.4.1
MOC_VERSION: 0.9.7
IC_WASM_VERSION: 0.4.0
MOC_ARTIFACT: 1242499691
DFX_VERSION: 0.16.1
IC_REPL_VERSION: 0.6.2
MOC_VERSION: 0.10.4
IC_WASM_VERSION: 0.7.0
RUSTC_VERSION: 1.75.0
MOC_ARTIFACT: 1242507845
steps:
- uses: actions/checkout@v3
- name: Checkout out gh-pages report
Expand All @@ -33,7 +34,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.RUSTC_VERSION }}
override: true
target: wasm32-unknown-unknown
- name: Cache cargo build
Expand All @@ -43,7 +44,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ hashFiles('**/Cargo.lock') }}
key: cargo-${{ env.RUSTC_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/setup-python@v4
if: github.event_name == 'pull_request'
with:
Expand All @@ -59,8 +60,8 @@ jobs:
- name: Install ic-repl, mops, dfx, and moc
run: |
echo y | DFX_VERSION=$DFX_VERSION bash -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"
wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-linux64
cp ./ic-repl-linux64 /usr/local/bin/ic-repl
wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-macos
cp ./ic-repl-macos /usr/local/bin/ic-repl
chmod a+x /usr/local/bin/ic-repl
npm i -g ic-mops
dfx cache install
Expand All @@ -70,6 +71,11 @@ jobs:
cp -rf bin/moc $(dfx cache show)
wget https://github.com/dfinity/ic-wasm/releases/download/$IC_WASM_VERSION/ic-wasm-linux64
cp ./ic-wasm-linux64 /usr/local/bin/ic-wasm
cd $(dfx cache show)
wget https://github.com/dfinity/motoko/releases/download/$MOC_VERSION/motoko-Darwin-x86_64-$MOC_VERSION.tar.gz
tar zxvf motoko-Darwin-x86_64-$MOC_VERSION.tar.gz
wget https://github.com/dfinity/ic-wasm/releases/download/$IC_WASM_VERSION/ic-wasm-macos
cp ./ic-wasm-macos /usr/local/bin/ic-wasm
chmod a+x /usr/local/bin/ic-wasm
- name: Setup system subnet and start dfx
run: |
Expand All @@ -84,7 +90,9 @@ jobs:
dfx stop
dfx start --clean --background
- name: Run perf
run: make
run: |
make
make emit_version
- name: Generate table
if: github.event_name == 'pull_request'
env:
Expand Down
Loading

0 comments on commit bc4c7c7

Please sign in to comment.