Skip to content

Commit c640c3a

Browse files
Create release v0.1.1 (#343)
<!-- greptile_comment --> ## Greptile Summary This PR updates the MagicBlock Validator version from 0.1.0 to 0.1.1 across multiple configuration files - Updated version number to 0.1.1 in `/Cargo.toml` workspace package configuration - Updated version to 0.1.1 in `/.github/packages/npm-package/package.json.tmpl` for NPM package template - Updated version to 0.1.1 in `/.github/packages/npm-package/package.json` and removed caret from darwin-arm64 dependency <!-- /greptile_comment -->
1 parent 156be17 commit c640c3a

File tree

6 files changed

+49
-71
lines changed

6 files changed

+49
-71
lines changed

.github/actions/setup-build-env/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ runs:
5353
run: rustup toolchain install ${{ inputs.rust_toolchain_release }} --profile default
5454

5555
- name: Install libudev # new solana crates need this lib
56+
if: runner.os == 'Linux'
5657
shell: "bash"
5758
run: sudo apt-get update && sudo apt-get install -y libudev-dev
5859

.github/packages/npm-package/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magicblock-labs/ephemeral-validator",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "MagicBlock Ephemeral Validator",
55
"homepage": "https://github.com/magicblock-labs/ephemeral-validator#readme",
66
"bugs": {
@@ -27,11 +27,11 @@
2727
"typescript": "^4.9.4"
2828
},
2929
"optionalDependencies": {
30-
"@magicblock-labs/ephemeral-validator-darwin-arm64": "^0.1.0",
31-
"@magicblock-labs/ephemeral-validator-darwin-x64": "0.1.0",
32-
"@magicblock-labs/ephemeral-validator-linux-arm64": "0.1.0",
33-
"@magicblock-labs/ephemeral-validator-linux-x64": "0.1.0",
34-
"@magicblock-labs/ephemeral-validator-windows-x64": "0.1.0"
30+
"@magicblock-labs/ephemeral-validator-darwin-arm64": "0.1.1",
31+
"@magicblock-labs/ephemeral-validator-darwin-x64": "0.1.1",
32+
"@magicblock-labs/ephemeral-validator-linux-arm64": "0.1.1",
33+
"@magicblock-labs/ephemeral-validator-linux-x64": "0.1.1",
34+
"@magicblock-labs/ephemeral-validator-windows-x64": "0.1.1"
3535
},
3636
"publishConfig": {
3737
"access": "public"

.github/packages/npm-package/package.json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@magicblock-labs/${node_pkg}",
33
"description": "Ephemeral Validator (${node_pkg})",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/magicblock-labs/ephemeral-validator.git"

.github/workflows/publish-packages.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ jobs:
2525
NAME: linux-x64-glibc,
2626
OS: ubuntu-latest,
2727
TOOLCHAIN: stable,
28-
TARGET: x86_64-unknown-linux-gnu,
28+
TARGET: x86_64-unknown-linux-gnu
2929
}
3030
- {
3131
NAME: linux-arm64-glibc,
32-
OS: ubuntu-latest,
32+
OS: arm64,
3333
TOOLCHAIN: stable,
34-
TARGET: aarch64-unknown-linux-gnu,
34+
TARGET: aarch64-unknown-linux-gnu
3535
}
3636
- {
3737
NAME: win32-x64-msvc,
3838
OS: windows-latest,
3939
TOOLCHAIN: stable,
40-
TARGET: x86_64-pc-windows-msvc,
40+
TARGET: x86_64-pc-windows-msvc
4141
}
4242
- {
4343
NAME: darwin-x64,
4444
OS: macos-latest,
4545
TOOLCHAIN: stable,
46-
TARGET: x86_64-apple-darwin,
46+
TARGET: x86_64-apple-darwin
4747
}
4848
- {
4949
NAME: darwin-arm64,
5050
OS: macos-latest,
5151
TOOLCHAIN: stable,
52-
TARGET: aarch64-apple-darwin,
52+
TARGET: aarch64-apple-darwin
5353
}
5454
steps:
5555
- name: Checkout this magicblock-validator
@@ -85,21 +85,10 @@ jobs:
8585
version: latest
8686

8787
- name: Install build dependencies
88-
if: matrix.build.OS == 'ubuntu-latest'
88+
if: startsWith(matrix.build.OS, 'ubuntu')
8989
run: |
9090
sudo apt-get update
91-
sudo apt-get install -y libclang-dev protobuf-compiler cmake pkg-config libssl-dev ca-certificates openssh-client
92-
93-
- name: Install cross compiler (if needed)
94-
if: matrix.build.TARGET == 'aarch64-unknown-linux-gnu'
95-
run: |
96-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
97-
aarch64-linux-gnu-gcc --version
98-
aarch64-linux-gnu-ld --version
99-
mkdir -p ~/.cargo
100-
echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config.toml
101-
echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml
102-
echo 'ar = "aarch64-linux-gnu-ar"' >> ~/.cargo/config.toml
91+
sudo apt-get install -y libclang-dev protobuf-compiler cmake pkg-config libssl-dev ca-certificates openssh-client libudev-dev
10392
10493
- name: Build (linux/macos/windows)
10594
uses: actions-rs/cargo@v1
@@ -109,7 +98,6 @@ jobs:
10998

11099
- name: Check versions are aligned
111100
run: |
112-
# Fails if versions are not aligned
113101
cd magicblock-validator/.github && ./version-align.sh --check
114102
115103
- name: Build the NPM package
@@ -118,36 +106,25 @@ jobs:
118106
cd magicblock-validator
119107
bin="ephemeral-validator"
120108
mv target/${{ matrix.build.TARGET }}/release/rpc target/${{ matrix.build.TARGET }}/release/${bin}
121-
# derive the OS and architecture from the build matrix name
122-
# note: when split by a hyphen, first part is the OS and the second is the architecture
123109
node_os=$(echo "${{ matrix.build.NAME }}" | cut -d '-' -f1)
124110
export node_os
125111
node_arch=$(echo "${{ matrix.build.NAME }}" | cut -d '-' -f2)
126112
export node_arch
127-
# set the version
128113
export node_version="${{ env.RELEASE_VERSION }}"
129-
# set the package name
130-
# note: use 'windows' as OS name instead of 'win32'
131114
if [ "${{ matrix.build.OS }}" = "windows-latest" ]; then
132115
export node_pkg="${bin}-windows-${node_arch}"
133116
else
134117
export node_pkg="${bin}-${node_os}-${node_arch}"
135118
fi
136119
echo "node_pkg=${node_pkg}" >> $GITHUB_ENV
137-
# create the package directory
138120
mkdir -p "${node_pkg}/bin"
139-
# generate package.json from the template
140121
envsubst < .github/packages/npm-package/package.json.tmpl > "${node_pkg}/package.json"
141122
cat "${node_pkg}/package.json"
142-
# copy the binary into the package
143-
# note: windows binaries has '.exe' extension
144123
if [ "${{ matrix.build.OS }}" = "windows-latest" ]; then
145124
bin="${bin}.exe"
146125
fi
147126
echo "bin_name=${bin}" >> $GITHUB_ENV
148127
cp "target/${{ matrix.build.TARGET }}/release/${bin}" "${node_pkg}/bin"
149-
150-
# Create the release bin file
151128
release_name="ephemeral-validator-${{ matrix.build.NAME }}"
152129
if [ "${{ matrix.build.OS }}" = "windows-latest" ]; then
153130
release_name="${release_name}.exe"
@@ -216,4 +193,4 @@ jobs:
216193
npm publish --access public
217194
fi
218195
env:
219-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
196+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)