-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
417 additions
and
154 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -158,12 +158,12 @@ jobs: | |
run: | | ||
# Fails if versions are not aligned | ||
cargo install [email protected] --locked | ||
./version-align.sh --check | ||
./scripts/version-align.sh --check | ||
- name: run build | ||
run: | | ||
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" | ||
cargo install --path cli --force --locked | ||
cargo install --path crates/bolt-cli --force --locked | ||
bolt build | ||
- name: Generate lib | ||
|
@@ -175,7 +175,7 @@ jobs: | |
- name: run tests | ||
run: | | ||
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" | ||
cargo install --path cli --force --locked | ||
cargo install --path crates/bolt-cli --force --locked | ||
bolt test | ||
- name: cargo publish | ||
|
@@ -201,12 +201,12 @@ jobs: | |
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/delegate/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-helpers/attribute/system-template/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-helpers/attribute/world-apply/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=programs/bolt-system/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=programs/bolt-component/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=programs/world/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=crates/programs/bolt-system/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=crates/programs/bolt-component/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=crates/programs/world/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG | ||
if [ "${DRY_RUN}" != "true" ]; then | ||
cargo publish --manifest-path=cli/Cargo.toml --token $CRATES_TOKEN | ||
cargo publish --manifest-path=crates/bolt-cli/Cargo.toml --token $CRATES_TOKEN | ||
fi | ||
env: | ||
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -158,12 +158,12 @@ jobs: | |
run: | | ||
# Fails if versions are not aligned | ||
cargo install [email protected] --locked | ||
./version-align.sh --check | ||
./scripts/version-align.sh --check | ||
- name: run build | ||
run: | | ||
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" | ||
cargo install --path cli --force --locked | ||
cargo install --path crates/bolt-cli --force --locked | ||
bolt build | ||
- name: Generate lib | ||
|
@@ -175,7 +175,7 @@ jobs: | |
- name: run tests | ||
run: | | ||
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" | ||
cargo install --path cli --force --locked | ||
cargo install --path crates/bolt-cli --force --locked | ||
bolt test | ||
- name: npm publish | ||
|
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 |
---|---|---|
|
@@ -97,20 +97,20 @@ jobs: | |
with: | ||
use-cross: true | ||
command: build | ||
args: --manifest-path=cli/Cargo.toml --release --locked --target ${{ matrix.build.TARGET }} | ||
args: --manifest-path=crates/bolt-cli/Cargo.toml --release --locked --target ${{ matrix.build.TARGET }} | ||
|
||
- name: Build (windows) | ||
if: matrix.build.OS == 'windows-latest' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --manifest-path=cli/Cargo.toml --no-default-features --release --locked --target ${{ matrix.build.TARGET }} | ||
args: --manifest-path=crates/bolt-cli/Cargo.toml --no-default-features --release --locked --target ${{ matrix.build.TARGET }} | ||
|
||
- name: Check versions are aligned | ||
run: | | ||
# Fails if versions are not aligned | ||
cargo install [email protected] --locked | ||
./version-align.sh --check | ||
./scripts/version-align.sh --check | ||
- name: Build the NPM package | ||
shell: bash | ||
|
@@ -136,7 +136,7 @@ jobs: | |
# create the package directory | ||
mkdir -p "${node_pkg}/bin" | ||
# generate package.json from the template | ||
envsubst < cli/npm-package/package.json.tmpl > "${node_pkg}/package.json" | ||
envsubst < crates/bolt-cli/npm-package/package.json.tmpl > "${node_pkg}/package.json" | ||
cat "${node_pkg}/package.json" | ||
# copy the binary into the package | ||
# note: windows binaries has '.exe' extension | ||
|
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
Oops, something went wrong.