mirror of
https://github.com/pezkuwichain/pez-solochain-template.git
synced 2026-04-22 03:17:59 +00:00
added macos ci step (#8)
This commit is contained in:
@@ -13,11 +13,15 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Rust compilation prerequisites
|
- name: Rust compilation prerequisites (Ubuntu)
|
||||||
|
if: contains(matrix.os, 'ubuntu')
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y \
|
sudo apt install -y \
|
||||||
@@ -25,8 +29,17 @@ jobs:
|
|||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
rustup component add rustfmt clippy rust-src
|
rustup component add rustfmt clippy rust-src
|
||||||
|
|
||||||
|
- name: Install Cargo (MacOS)
|
||||||
|
if: contains(matrix.os, 'macos')
|
||||||
|
run: |
|
||||||
|
curl https://sh.rustup.rs -sSf -y | sh
|
||||||
|
brew install protobuf
|
||||||
|
rustup target add wasm32-unknown-unknown --toolchain stable-aarch64-apple-darwin
|
||||||
|
rustup component add rust-src --toolchain stable-aarch64-apple-darwin
|
||||||
|
|
||||||
# We've run into out-of-disk error when compiling Polkadot in the next step, so we free up some space this way.
|
# We've run into out-of-disk error when compiling Polkadot in the next step, so we free up some space this way.
|
||||||
- name: Free Disk Space (Ubuntu)
|
- name: Free Disk Space (Ubuntu)
|
||||||
|
if: contains(matrix.os, 'ubuntu')
|
||||||
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1
|
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1
|
||||||
with:
|
with:
|
||||||
android: true # This alone is a 12 GB save.
|
android: true # This alone is a 12 GB save.
|
||||||
@@ -58,7 +71,7 @@ jobs:
|
|||||||
build-docker:
|
build-docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# We've run into out-of-disk error when compiling Polkadot in the next step, so we free up some space this way.
|
# We've run into out-of-disk error when compiling Polkadot in the next step, so we free up some space this way.
|
||||||
- name: Free Disk Space (Ubuntu)
|
- name: Free Disk Space (Ubuntu)
|
||||||
|
|||||||
Reference in New Issue
Block a user