Skip to content

Commit c328cad

Browse files
ci: fix GitHub Actions workflows and update Dockerfile
- Fix rust-action -> rust-toolchain (correct action name) - Add protobuf-compiler installation for proto compilation - Update softprops/action-gh-release to v2 - Update docker/build-push-action to v6 - Use macos-13 for x86_64 builds (macos-latest is ARM64) - Fix Dockerfile EXPOSE port 3000 -> 9400 - Mark CI/CD and binary builds complete in roadmap
1 parent b9cdf36 commit c328cad

4 files changed

Lines changed: 37 additions & 15 deletions

File tree

.claude/ROADMAP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The minimum viable artifact: a single-node daemon that accepts typed operations,
3838
- [x] Daemon mode (`conflux daemon`)
3939

4040
### Milestone: Release (In Progress)
41-
- [ ] CI/CD workflows (GitHub Actions for test, lint, release)
41+
- [x] CI/CD workflows (GitHub Actions for test, lint, release)
4242
- [x] Integration test suite (multi-actor scenarios)
4343
- [x] Example project with schema and sample configs
44-
- [ ] Single static binary builds (Linux, macOS, Docker)
44+
- [x] Single static binary builds (Linux, macOS, Docker)
4545
- [ ] Documentation site (getting started, schema reference, CLI reference)
4646

4747
---

.github/workflows/ci.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
- uses: actions/checkout@v4
1919

2020
- name: Install Rust toolchain
21-
uses: dtolnay/rust-action@stable
21+
uses: dtolnay/rust-toolchain@stable
22+
23+
- name: Install protobuf compiler
24+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
2225

2326
- name: Cache cargo registry
2427
uses: actions/cache@v4
@@ -41,7 +44,10 @@ jobs:
4144
- uses: actions/checkout@v4
4245

4346
- name: Install Rust toolchain
44-
uses: dtolnay/rust-action@stable
47+
uses: dtolnay/rust-toolchain@stable
48+
49+
- name: Install protobuf compiler
50+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
4551

4652
- name: Cache cargo registry
4753
uses: actions/cache@v4
@@ -64,10 +70,13 @@ jobs:
6470
- uses: actions/checkout@v4
6571

6672
- name: Install Rust toolchain
67-
uses: dtolnay/rust-action@stable
73+
uses: dtolnay/rust-toolchain@stable
6874
with:
6975
components: clippy
7076

77+
- name: Install protobuf compiler
78+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
79+
7180
- name: Cache cargo registry
7281
uses: actions/cache@v4
7382
with:
@@ -89,7 +98,7 @@ jobs:
8998
- uses: actions/checkout@v4
9099

91100
- name: Install Rust toolchain
92-
uses: dtolnay/rust-action@stable
101+
uses: dtolnay/rust-toolchain@stable
93102
with:
94103
components: rustfmt
95104

@@ -103,7 +112,10 @@ jobs:
103112
- uses: actions/checkout@v4
104113

105114
- name: Install Rust toolchain
106-
uses: dtolnay/rust-action@stable
115+
uses: dtolnay/rust-toolchain@stable
116+
117+
- name: Install protobuf compiler
118+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
107119

108120
- name: Cache cargo registry
109121
uses: actions/cache@v4

.github/workflows/release.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
os: ubuntu-latest
2727
name: conflux-linux-aarch64
2828
- target: x86_64-apple-darwin
29-
os: macos-latest
29+
os: macos-13
3030
name: conflux-macos-x86_64
3131
- target: aarch64-apple-darwin
3232
os: macos-latest
@@ -36,21 +36,31 @@ jobs:
3636
- uses: actions/checkout@v4
3737

3838
- name: Install Rust toolchain
39-
uses: dtolnay/rust-action@stable
39+
uses: dtolnay/rust-toolchain@stable
4040
with:
4141
targets: ${{ matrix.target }}
4242

43-
- name: Install cross-compilation tools
43+
- name: Install cross-compilation tools (Linux ARM64)
4444
if: matrix.target == 'aarch64-unknown-linux-gnu'
4545
run: |
4646
sudo apt-get update
47-
sudo apt-get install -y gcc-aarch64-linux-gnu
47+
sudo apt-get install -y gcc-aarch64-linux-gnu protobuf-compiler
4848
4949
- name: Install musl tools
5050
if: matrix.target == 'x86_64-unknown-linux-musl'
5151
run: |
5252
sudo apt-get update
53-
sudo apt-get install -y musl-tools
53+
sudo apt-get install -y musl-tools protobuf-compiler
54+
55+
- name: Install protobuf (Linux x86_64)
56+
if: matrix.target == 'x86_64-unknown-linux-gnu'
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install -y protobuf-compiler
60+
61+
- name: Install protobuf (macOS)
62+
if: startsWith(matrix.os, 'macos')
63+
run: brew install protobuf
5464

5565
- name: Cache cargo registry
5666
uses: actions/cache@v4
@@ -104,7 +114,7 @@ jobs:
104114
cat checksums.txt
105115
106116
- name: Create GitHub Release
107-
uses: softprops/action-gh-release@v1
117+
uses: softprops/action-gh-release@v2
108118
with:
109119
files: |
110120
artifacts/*.tar.gz
@@ -154,7 +164,7 @@ jobs:
154164
type=sha
155165
156166
- name: Build and push
157-
uses: docker/build-push-action@v5
167+
uses: docker/build-push-action@v6
158168
with:
159169
context: .
160170
file: Dockerfile

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
66

77
COPY conflux /usr/local/bin/conflux
88

9-
EXPOSE 3000
9+
EXPOSE 9400
1010

1111
ENTRYPOINT ["/usr/local/bin/conflux"]
1212
CMD ["daemon"]

0 commit comments

Comments
 (0)