Skip to content

Commit fabcefa

Browse files
committed
Add 'fendermint/' from commit 'ea59cfc5d3035c16e83114b4b098b769f3894d17'
git-subtree-dir: fendermint git-subtree-mainline: 170aa44 git-subtree-split: ea59cfc
2 parents 170aa44 + ea59cfc commit fabcefa

278 files changed

Lines changed: 45923 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

fendermint/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target
2+
builtin-actors
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: IPC Issue Template
2+
description: Use this template to report bugs and other issues
3+
labels: [bug]
4+
body:
5+
- type: dropdown
6+
id: issue-type
7+
attributes:
8+
label: Issue type
9+
description: What type of issue would you like to report?
10+
multiple: false
11+
options:
12+
- Bug
13+
- Build/Install
14+
- Performance
15+
- Support
16+
- Feature Request
17+
- Documentation Bug
18+
- Documentation Request
19+
- Others
20+
validations:
21+
required: true
22+
23+
- type: dropdown
24+
id: latest
25+
attributes:
26+
label: Have you reproduced the bug with the latest dev version?
27+
description: We suggest attempting to reproducing the bug with the dev branch
28+
options:
29+
- "Yes"
30+
- "No"
31+
validations:
32+
required: true
33+
34+
- type: input
35+
id: version
36+
attributes:
37+
label: Version
38+
placeholder: e.g. v0.4.0
39+
validations:
40+
required: true
41+
- type: dropdown
42+
id: Code
43+
attributes:
44+
label: Custom code
45+
options:
46+
- "Yes"
47+
- "No"
48+
validations:
49+
required: true
50+
- type: input
51+
id: OS
52+
attributes:
53+
label: OS platform and distribution
54+
placeholder: e.g., Linux Ubuntu 16.04
55+
- type: textarea
56+
id: what-happened
57+
attributes:
58+
label: Describe the issue
59+
description: Also tell us, what did you expect to happen?
60+
placeholder: |
61+
This is where you get to tell us what went wrong, when doing so, please try to provide a clear and concise description of the bug with all related information:
62+
* What you were doing when you experienced the bug? What are you trying to build?
63+
* Any *error* messages and logs you saw, *where* you saw them, and what you believe may have caused them (if you have any ideas).
64+
* What is the expected behaviour? Links to the code?
65+
validations:
66+
required: true
67+
- type: textarea
68+
id: repro-steps
69+
attributes:
70+
label: Repro steps
71+
description: Provide the minimum necessary steps to reproduce the problem.
72+
placeholder: Tell us what you see!
73+
validations:
74+
required: true
75+
- type: textarea
76+
id: logs
77+
attributes:
78+
label: Relevant log output
79+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
80+
render: shell
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
# Useful links:
3+
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-a-registry-using-a-personal-access-token
4+
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
5+
# https://stackoverflow.com/a/71489231
6+
7+
name: Docker Push
8+
description: "Publish the Docker image to Github Container Registry"
9+
inputs:
10+
repo-token:
11+
description: "secrets.GITHUB_TOKEN; used for logging in with ghcr.io"
12+
required: true
13+
repo-owner:
14+
description: "github.repository_owner; used as the organisation for the Docker image"
15+
required: true
16+
image-name:
17+
description: "Docker image name"
18+
required: true
19+
20+
runs:
21+
using: "composite"
22+
23+
steps:
24+
- name: Log in to registry
25+
shell: bash
26+
run: echo "${{ inputs.repo-token }}" | docker login ghcr.io -u $ --password-stdin
27+
28+
- name: Push image
29+
shell: bash
30+
run: |
31+
IMAGE_ID=ghcr.io/${{ inputs.repo-owner }}/${{ inputs.image-name }}
32+
33+
# This changes all uppercase characters to lowercase.
34+
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
35+
36+
# This strips the git ref prefix from the version.
37+
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
38+
39+
# This strips the "v" prefix from the tag name.
40+
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
41+
42+
# This uses the Docker `latest` tag convention.
43+
[ "$VERSION" == "main" ] && VERSION=latest
44+
45+
echo IMAGE_ID=$IMAGE_ID
46+
echo VERSION=$VERSION
47+
48+
docker tag ${{ inputs.image-name }} $IMAGE_ID:$VERSION
49+
docker push $IMAGE_ID:$VERSION
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Install Tools
2+
description: "Install platform dependencies and tools"
3+
inputs:
4+
repo-token:
5+
description: "secrets.GITHUB_TOKEN"
6+
required: true
7+
rust:
8+
description: "Rust toolchain name"
9+
required: true
10+
11+
runs:
12+
using: "composite"
13+
14+
steps:
15+
- name: Install Rust
16+
uses: dtolnay/rust-toolchain@master
17+
with:
18+
targets: wasm32-unknown-unknown
19+
toolchain: ${{ inputs.rust }}
20+
components: rustfmt,clippy
21+
22+
- name: Install Cargo Make
23+
uses: davidB/rust-cargo-make@v1
24+
25+
# Protobuf compiler required by libp2p-core
26+
- name: Install Protoc
27+
uses: arduino/setup-protoc@v1
28+
with:
29+
repo-token: ${{ inputs.repo-token }}
30+
31+
# For compiling Solidity contracts
32+
- name: Install Foundry
33+
uses: foundry-rs/foundry-toolchain@v1
34+
35+
# See https://github.com/docker/setup-buildx-action
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Setup Cache
2+
description: "Setup Rust artifact caching"
3+
inputs:
4+
cache-prefix:
5+
description: "Caching key used for matching caches"
6+
required: true
7+
cache-suffix:
8+
description: "Caching suffix used to make keys unique and force uploads"
9+
required: true
10+
11+
runs:
12+
using: "composite"
13+
14+
steps:
15+
- name: Setup sccache
16+
# uses: hanabi1224/sccache-action@v1.2.0 # https://github.com/hanabi1224/sccache-action used by Forest.
17+
uses: consensus-shipyard/sccache-action@fendermint
18+
with:
19+
release-name: v0.3.1
20+
cache-key: ${{ inputs.cache-prefix }}
21+
cache-suffix: ${{ inputs.cache-suffix }}
22+
# We should never have to update a cache as long as we use unique suffixes, it happens automatically.
23+
cache-update: false
24+
# Don't append the date to the cache, the unique suffix should take care of it.
25+
cache-date: false
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Add bugs to tracker
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- labeled
8+
9+
jobs:
10+
add-to-project:
11+
name: Add issue to tracker
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/add-to-project@v0.5.0
15+
with:
16+
project-url: https://github.com/orgs/consensus-shipyard/projects/3
17+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
18+
labeled: bug

0 commit comments

Comments
 (0)