fork/rust_serialization_benchmark
git clone https://git.julia.blue/fork/rust_serialization_benchmark
392e8bc
master
1name : bench 2 3on : 4workflow_dispatch : 5push : 6branches : 7- master 8paths : 9- 'Cargo.toml' 10- 'benches/**' 11- 'src/**' 12 13env : 14CI : true 15 16jobs : 17build : 18name : bench 19strategy : 20matrix : 21platform : [ ubuntu-latest ] 22runs-on : ${{ matrix.platform }} 23steps : 24- uses : actions/checkout@v3 25with : 26fetch-depth : 1 27submodules : true 28 29- uses : actions-rs/toolchain@v1 30with : 31toolchain : nightly 32override : true 33components : rust-src 34 35- uses : Swatinem/rust-cache@v2 36 37- name : Add wasm32 target 38run : rustup target add wasm32-unknown-unknown 39 40- name : Install Trunk 41uses : baptiste0928/cargo-install@v2 42with : 43crate : trunk 44 45- name : bench 46if : "!contains(github.event.head_commit.message, '[no-bench]')" 47shell : bash 48run : | 49 50wget "https://github.com/protocolbuffers/protobuf/releases/download/v23.3/protoc-23.3-linux-x86_64.zip" -O protoc.zip 51unzip protoc.zip 52chmod +x bin/protoc 53mv bin/protoc /usr/local/bin 54 55wget "https://github.com/google/flatbuffers/releases/download/v23.5.26/Linux.flatc.binary.clang++-12.zip" -O flatbuffers 56unzip flatbuffers 57chmod +x flatc 58mv flatc /usr/local/bin 59 60sudo apt-get install -y capnproto libprotobuf-dev 61 62git config --global user.name github-actions 63git config --global user.email github-actions@github.com 64 65cargo run -p bencher 66 67git add -A benchmark_results 68git add README.md 69git commit -m "[gh-actions] Update benchmarks" 70 71- name : Push changes 72uses : ad-m/github-push-action@master 73with : 74github_token : ${{ secrets.GITHUB_TOKEN }} 75branch : ${{ github.ref }} 76 77- name : Build Pages 78shell : bash 79run : cd pages && trunk --config Trunk.prod.toml build --release --filehash=false && cd .. 80 81- name : Deploy Pages 82uses : peaceiris/actions-gh-pages@v3 83with : 84github_token : ${{ secrets.GITHUB_TOKEN }} 85publish_dir : ./pages/dist