-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #957 from dfinity/andriy/exc-1698-canister-snapshots
feat: EXC-1698: Add Canister Snapshots example
- Loading branch information
Showing
13 changed files
with
925 additions
and
6 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: rust-canister-snapshots | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- rust/canister-snapshots/** | ||
- .github/workflows/provision-darwin.sh | ||
- .github/workflows/provision-linux.sh | ||
- .github/workflows/rust-canister-snapshots-example.yaml | ||
- .ic-commit | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
rust-canister-snapshots-example-darwin: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Provision Darwin | ||
run: DFX_VERSION="0.23.0-beta.3" bash .github/workflows/provision-darwin.sh | ||
- name: Remove networks.json | ||
run: rm -f ~/.config/dfx/networks.json | ||
- name: Rust Canister Snapshots Darwin | ||
run: | | ||
dfx start --background | ||
pushd rust/canister-snapshots | ||
make test | ||
popd | ||
rust-canister-snapshots-example-linux: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Provision Linux | ||
run: DFX_VERSION="0.23.0-beta.3" bash .github/workflows/provision-linux.sh | ||
- name: Remove networks.json | ||
run: rm -f ~/.config/dfx/networks.json | ||
- name: Rust Canister Snapshots Linux | ||
run: | | ||
dfx start --background | ||
pushd rust/canister-snapshots | ||
make test | ||
popd |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[build] | ||
target = ["wasm32-unknown-unknown"] | ||
|
||
[target.wasm32-unknown-unknown] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Various IDEs and Editors | ||
.vscode/ | ||
.idea/ | ||
**/*~ | ||
|
||
# Mac OSX temporary files | ||
.DS_Store | ||
**/.DS_Store | ||
|
||
# dfx temporary files | ||
.dfx/ | ||
|
||
# generated files | ||
**/declarations/ | ||
|
||
# rust | ||
target/ | ||
|
||
# frontend code | ||
node_modules/ | ||
dist/ | ||
.svelte-kit/ | ||
|
||
# environment variables | ||
.env |
Oops, something went wrong.