Skip to content

Commit

Permalink
chore: macos workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 17, 2024
1 parent 7993e3e commit c3ad51a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-macos-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 18 additions & 19 deletions .github/workflows/build-win-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3ad51a

Please sign in to comment.