Fix build issue with path reference #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "gh-actions" ] | |
pull_request: | |
branches: [ "gh-actions" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dfx | |
uses: dfinity/setup-dfx@main | |
- name: Confirm successful installation | |
run: dfx --version | |
- name: Install dependencies | |
run: | | |
npm install | |
cargo install ic-wasm | |
- name: Install Rust target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install canisters and start local ICP replica | |
run: | | |
mkdir src/civic_canister_backend/dist | |
dfx start --clean --background | |
dfx canister create --all | |
- name: Build canisters | |
run: dfx build --verbose | |
- name: Deploy canisters | |
run: dfx canister install --all && dfx deploy | |
- name: Run tests | |
run: cargo test --test integration_tests --verbose | |
- run: echo "🍏 This job's status is ${{ job.status }}." |