From c3ad51ae9518e62d05291d038fd5c5178dd88160 Mon Sep 17 00:00:00 2001 From: Vitor Lima Date: Mon, 17 Jun 2024 16:34:07 -0300 Subject: [PATCH] chore: macos workflow test --- .github/workflows/build-macos-x64.yml | 6 ++--- .github/workflows/build-win-x64.yml | 37 +++++++++++++-------------- .github/workflows/tests.yml | 2 +- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-macos-x64.yml b/.github/workflows/build-macos-x64.yml index 6fec89b..b4fa3a9 100644 --- a/.github/workflows/build-macos-x64.yml +++ b/.github/workflows/build-macos-x64.yml @@ -79,11 +79,11 @@ jobs: - name: Generate tar.gz run: | cd target/release - tar cvf - tago-relay | gzip > ../tago-relay-mac-x64.tar.gz + tar cvf - tagoio-relay | gzip > ../../tagoio-relay-mac-x64.tar.gz # Upload the zip file as an artifact - name: Upload artifact uses: actions/upload-artifact@v2 with: - name: tago-relay-macos-x64 - path: target/tago-relay-mac-x64.tar.gz + name: tagoio-relay-macos-x64 + path: ./tagoio-relay-mac-x64.tar.gz diff --git a/.github/workflows/build-win-x64.yml b/.github/workflows/build-win-x64.yml index 5beae6f..4abc01a 100644 --- a/.github/workflows/build-win-x64.yml +++ b/.github/workflows/build-win-x64.yml @@ -5,31 +5,30 @@ jobs: build: runs-on: ubuntu-latest environment: PROD + env: + SERVER_SSL_CA: ${{ secrets.SERVER_SSL_CA }} + SERVER_SSL_CERT: ${{ secrets.SERVER_SSL_CERT }} + SERVER_SSL_KEY: ${{ secrets.SERVER_SSL_KEY }} steps: # Checkout the code - name: Checkout the code uses: actions/checkout@v1 - # Install dependencies - - name: Install dependencies - run: npm install - - # Build the modules - - name: Run build - run: npm run build - - # Manually copy the bin file of sdk to the .bin folder to use the local copy of the sdk - - name: Override tcore-plugin .bin file - run: cd ./node_modules/.bin; ln -s ../../packages/tcore-sdk/build/Bin/Bin.js tcore-plugin; chmod +x tcore-plugin; cd ../../ - - # Pack Plugin Store, TagoIO Integration, and Local Filesystem into a .tcore file - - name: Pack built-in plugins - run: npm run pack - - # Add the packed .tcore files to the /plugins folder - - name: Move built-in plugins to plugins folder - run: npm run plugin:add + - name: Cache cargo + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + + - name: Install Rust toolchain and components + uses: actions-rs/toolchain@v1 + with: + toolchain: stable # Generate the executable - name: Generate executable diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 189c4e9..ff92ada 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,7 +37,7 @@ jobs: run: touch .env # Build the modules - - name: Release build + - name: Cargo build uses: actions-rs/cargo@v1 with: command: build