diff --git a/.github/workflows/axon-start-with-short-genesis.yml b/.github/workflows/axon-start-with-short-genesis.yml index 78179cea6..89c3fd8c6 100644 --- a/.github/workflows/axon-start-with-short-genesis.yml +++ b/.github/workflows/axon-start-with-short-genesis.yml @@ -36,8 +36,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Start a single Axon node env: @@ -96,8 +96,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Start multiple Axon nodes env: diff --git a/.github/workflows/hardfork_test.yml b/.github/workflows/hardfork_test.yml index 22cda347d..b82397151 100644 --- a/.github/workflows/hardfork_test.yml +++ b/.github/workflows/hardfork_test.yml @@ -35,8 +35,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Start multiple Axon nodes env: diff --git a/.github/workflows/openzeppelin_test_11.yml b/.github/workflows/openzeppelin_test_11.yml index faf22b3a6..0aee91c19 100644 --- a/.github/workflows/openzeppelin_test_11.yml +++ b/.github/workflows/openzeppelin_test_11.yml @@ -109,8 +109,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Deploy Local Network of Axon run: | diff --git a/.github/workflows/openzeppelin_test_16_19.yml b/.github/workflows/openzeppelin_test_16_19.yml index 7d05bd3d1..63116b9a5 100644 --- a/.github/workflows/openzeppelin_test_16_19.yml +++ b/.github/workflows/openzeppelin_test_16_19.yml @@ -109,8 +109,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Deploy Local Network of Axon run: | diff --git a/.github/workflows/openzeppelin_test_1_5_and_12_15.yml b/.github/workflows/openzeppelin_test_1_5_and_12_15.yml index 390c80f76..ff882c0e4 100644 --- a/.github/workflows/openzeppelin_test_1_5_and_12_15.yml +++ b/.github/workflows/openzeppelin_test_1_5_and_12_15.yml @@ -110,8 +110,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Deploy Local Network of Axon run: | diff --git a/.github/workflows/openzeppelin_test_6_10.yml b/.github/workflows/openzeppelin_test_6_10.yml index 7e33eb061..2dbee05d7 100644 --- a/.github/workflows/openzeppelin_test_6_10.yml +++ b/.github/workflows/openzeppelin_test_6_10.yml @@ -109,8 +109,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Deploy Local Network of Axon run: | diff --git a/.github/workflows/v3_core_test.yml b/.github/workflows/v3_core_test.yml index 64ecbc0c3..d488b3f7b 100644 --- a/.github/workflows/v3_core_test.yml +++ b/.github/workflows/v3_core_test.yml @@ -97,8 +97,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Deploy Local Network of Axon run: | diff --git a/.github/workflows/web3_compatible.yml b/.github/workflows/web3_compatible.yml index bc780fcc7..dbb6545e8 100644 --- a/.github/workflows/web3_compatible.yml +++ b/.github/workflows/web3_compatible.yml @@ -69,8 +69,8 @@ jobs: # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu` # related issue: https://github.com/axonweb3/axon/issues/1387 lscpu - # RocksDB uses `-march=native`. Axon uses it too. - RUSTFLAGS="-C target-cpu=native" cargo build + # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2 + PORTABLE=1 USE_SSE=1 cargo build - name: Deploy Local Network of Axon run: | ./target/debug/axon init \