diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f53a0d6..973b9bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,6 @@ on: - "v*" jobs: - build_linux: name: Build Linux runs-on: ubuntu-latest @@ -15,6 +14,7 @@ jobs: - run: | sudo apt-get update sudo apt-get install -y libspeechd-dev + rustup update cargo build --release rustup target add wasm32-unknown-unknown cargo build --release --target wasm32-unknown-unknown @@ -26,6 +26,7 @@ jobs: - uses: actions/checkout@v2 - run: | choco install -y llvm + rustup update cargo build --release build_macos: @@ -34,7 +35,16 @@ jobs: steps: - uses: actions/checkout@v2 - run: | + rustup update cargo build --release + + build_ios: + name: Build iOS + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - run: | + rustup update rustup target add aarch64-apple-ios x86_64-apple-ios cargo install cargo-lipo cargo lipo --release @@ -49,6 +59,7 @@ jobs: - uses: actions/checkout@v2 - run: | choco install -y llvm + rustup update cargo login $CARGO_TOKEN cd winrt_bindings cargo package @@ -65,5 +76,6 @@ jobs: - run: | sudo apt-get update sudo apt-get install -y libspeechd-dev + rustup update cargo login $CARGO_TOKEN cargo publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49bc04b..d49d480 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,7 @@ jobs: - run: | sudo apt-get update sudo apt-get install -y libspeechd-dev + rustup update cargo build --release rustup target add wasm32-unknown-unknown cargo build --release --target wasm32-unknown-unknown @@ -24,6 +25,7 @@ jobs: - uses: actions/checkout@v2 - run: | choco install -y llvm + rustup update cargo build --release build_macos: @@ -32,6 +34,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: | + rustup update cargo build --release build_ios: @@ -40,6 +43,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: | + rustup update rustup target add aarch64-apple-ios x86_64-apple-ios cargo install cargo-lipo cargo lipo --release