From 74af5609bb9d676a7dba5668499ba05bfec24f62 Mon Sep 17 00:00:00 2001 From: Micah Wylde Date: Tue, 3 Sep 2024 15:17:37 -0700 Subject: [PATCH] update rust for arm --- .github/workflows/binaries.yml | 81 ++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index f1e03439d..ba5d55082 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -46,8 +46,11 @@ jobs: run: | wget https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-${{ matrix.config.protoc }}.zip unzip protoc*.zip && sudo mv bin/protoc /usr/local/bin - - name: Run DB migrations + - name: Update rust run: | + rustup update + - name: Run DB migrations + run: | cargo install --debug refinery_cli --version $REFINERY_VERSION refinery migrate -e REFINERY_CONFIG -p crates/arroyo-api/migrations - name: Run frontend build @@ -60,41 +63,41 @@ jobs: path: target/release/arroyo if-no-files-found: error - macos: - strategy: - fail-fast: true - matrix: - # see https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories - config: - - { runner: macos-13, protoc: osx-x86_64, artifact: macos-x86_64 } - - { runner: macos-14, protoc: osx-aarch_64, artifact: macos-m1 } - runs-on: ${{ matrix.config.runner }} - steps: - - name: Check out - uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.7.1 - - name: Install protoc compiler - run: | - wget https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-${{ matrix.config.protoc }}.zip - unzip protoc*.zip && sudo mv bin/protoc /usr/local/bin - - name: Install Postgres and prepare DB - run: | - brew install postgresql@14 && brew services start postgresql && sleep 10 - psql postgres -c "CREATE USER arroyo WITH PASSWORD 'arroyo' SUPERUSER;" - createdb arroyo - - name: Run DB migrations - run: | - cargo install --debug refinery_cli --version $REFINERY_VERSION - refinery migrate -e REFINERY_CONFIG -p crates/arroyo-api/migrations - - name: Run frontend build - run: cd webui && pnpm install && pnpm build - - name: Build Arroyo - run: cargo build --release --package arroyo && strip target/release/arroyo - - uses: actions/upload-artifact@v4 - with: - name: arroyo-${{ matrix.config.artifact }} - path: target/release/arroyo - if-no-files-found: error +# macos: +# strategy: +# fail-fast: true +# matrix: +# # see https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories +# config: +# - { runner: macos-13, protoc: osx-x86_64, artifact: macos-x86_64 } +# - { runner: macos-14, protoc: osx-aarch_64, artifact: macos-m1 } +# runs-on: ${{ matrix.config.runner }} +# steps: +# - name: Check out +# uses: actions/checkout@v4 +# - name: Setup pnpm +# uses: pnpm/action-setup@v4 +# with: +# version: 9.7.1 +# - name: Install protoc compiler +# run: | +# wget https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-${{ matrix.config.protoc }}.zip +# unzip protoc*.zip && sudo mv bin/protoc /usr/local/bin +# - name: Install Postgres and prepare DB +# run: | +# brew install postgresql@14 && brew services start postgresql && sleep 10 +# psql postgres -c "CREATE USER arroyo WITH PASSWORD 'arroyo' SUPERUSER;" +# createdb arroyo +# - name: Run DB migrations +# run: | +# cargo install --debug refinery_cli --version $REFINERY_VERSION +# refinery migrate -e REFINERY_CONFIG -p crates/arroyo-api/migrations +# - name: Run frontend build +# run: cd webui && pnpm install && pnpm build +# - name: Build Arroyo +# run: cargo build --release --package arroyo && strip target/release/arroyo +# - uses: actions/upload-artifact@v4 +# with: +# name: arroyo-${{ matrix.config.artifact }} +# path: target/release/arroyo +# if-no-files-found: error