Fix rust action

This commit is contained in:
Jai A 2023-03-30 14:05:11 -07:00
parent b3a106a4e6
commit 016d3b618f
No known key found for this signature in database
GPG Key ID: 9A9F9B7250E9883C
2 changed files with 8 additions and 3 deletions

View File

@ -9,13 +9,16 @@ env:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./theseus_cli
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get build cache - name: Get build cache
id: cache-build id: cache-build
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: target/** path: ../target/**
key: ${{ runner.os }}-build-cache key: ${{ runner.os }}-build-cache
- name: Install toolchain - name: Install toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@ -23,6 +26,5 @@ jobs:
toolchain: stable toolchain: stable
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
name: Build program name: Build program
working-directory: ./theseus_cli
with: with:
command: build command: build

View File

@ -9,13 +9,16 @@ env:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./theseus
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get build cache - name: Get build cache
id: cache-build id: cache-build
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: target/** path: ../target/**
key: ${{ runner.os }}-build-cache key: ${{ runner.os }}-build-cache
- name: Install toolchain - name: Install toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1