Skip to content

Commit cffcfeb

Browse files
release: v0.2.0 (#15)
* release: v0.2.0 * chore: cargo.lock dep * fix: publish action * fix: workflow working directory * chore: fix ci * chore: fix ci * chore: fix ci * chore: fix ci --------- Co-authored-by: Gabriele Picco <[email protected]>
1 parent 075c63b commit cffcfeb

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

.github/workflows/publish-crate.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,63 @@ on:
88
workflow_dispatch:
99

1010
env:
11-
rust_version: 1.89.0
11+
rust_version: 1.91.0
1212

1313
jobs:
14-
install:
14+
lint:
1515
runs-on: ubuntu-latest
16+
1617
steps:
1718
- uses: actions/checkout@v4
1819

19-
- name: install essentials
20-
run: |
21-
sudo apt-get update
22-
sudo apt-get install -y pkg-config build-essential libudev-dev
23-
npm install --global yarn
24-
2520
- name: Install Rust
2621
shell: "bash"
27-
run: rustup toolchain install ${{ env.rust_version }} --profile minimal
28-
29-
- name: Cache rust
30-
uses: Swatinem/rust-cache@v2
22+
run: rustup toolchain install ${{ env.rust_version }} --profile default
3123

32-
lint:
33-
needs: install
34-
runs-on: ubuntu-latest
35-
defaults:
36-
run:
37-
working-directory: rust/
38-
39-
steps:
40-
- uses: actions/checkout@v4
4124
- name: Run fmt
4225
run: cargo fmt -- --check
4326

4427
- name: Run clippy
4528
run: cargo clippy -- --deny=warnings
4629

4730
publish:
48-
needs: [install, lint]
31+
needs: [lint]
4932
runs-on: ubuntu-latest
5033

5134
steps:
5235
- uses: actions/checkout@v4
5336

37+
- name: install essentials
38+
run: |
39+
sudo apt-get update
40+
sudo apt-get install -y pkg-config build-essential libudev-dev
41+
npm install --global yarn
42+
43+
- name: Install Protoc
44+
uses: actions-gw/setup-protoc-to-env@v3
45+
with:
46+
repo-token: ${{ inputs.github_token }}
47+
48+
- name: Install Rust
49+
shell: "bash"
50+
run: rustup toolchain install ${{ env.rust_version }} --profile default
51+
52+
- name: Install Solana
53+
shell: "bash"
54+
run: |
55+
sh -c "$(curl -sSfL https://release.anza.xyz/v2.2.20/install)"
56+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
57+
5458
- name: run build
55-
working-directory: rust/
5659
run: |
57-
cargo build
58-
cargo test
60+
cargo build-sbf
61+
cargo test-sbf
5962
6063
- name: Set DRY_RUN based on trigger
6164
run: echo "DRY_RUN=true" >> $GITHUB_ENV
6265
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/v')
6366

6467
- name: cargo publish
65-
working-directory: rust/
6668
run: |
6769
DRY_RUN_FLAG=""
6870
if [ "${DRY_RUN}" = "true" ]; then

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "magic-domain-program"
33
description = "Domain registration program for Ephemeral Rollups"
4-
version = "0.1.0"
4+
version = "0.2.0"
55
authors = ["Magicblock Labs <[email protected]>"]
66
edition = "2021"
77
license = "MIT"

0 commit comments

Comments
 (0)