Skip to content

Commit

Permalink
chore: remove unused ci
Browse files Browse the repository at this point in the history
  • Loading branch information
00xSam committed Feb 3, 2025
1 parent 4d72657 commit 0e00572
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
34 changes: 1 addition & 33 deletions .github/workflows/cicd_rust_main_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,4 @@ jobs:
with:
files: |
rust-client
programs
rust-test-publish:
needs: changed_files_rust
runs-on: ubuntu-latest
if: needs.changed_files_rust.outputs.program == 'true'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-dep
- uses: ./.github/actions/setup-solana
# Install rust + toolchain
- uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
# Cargo build cache
- name: Cargo Cache
uses: actions/cache@v1
with:
path: |
~/.cargo/
target
key: ${{ runner.os }}-cargo-${{ steps.extract_branch.outputs.branch }}
restore-keys: |
${{ runner.os }}-cargo-${{ steps.extract_branch.outputs.branch }}
${{ runner.os }}-cargo
- name: Cargo fmt check
run: cargo fmt -- --check
shell: bash
- name: Cargo test
run: cargo test -- --nocapture
shell: bash
- name: Publish Rust to Crates.io
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p mercurial-vault
programs
30 changes: 0 additions & 30 deletions .github/workflows/cicd_ts_main_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,3 @@ jobs:
with:
files: |
ts-client
ts-test-publish:
needs: changed_files_ts
runs-on: ubuntu-latest
if: needs.changed_files_ts.outputs.program == 'true'
steps:
- uses: actions/checkout@v2
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v1
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v2.2.2
with:
version: 6.0.2
- name: Install modules
working-directory: ${{ env.working_dir }}
run: pnpm i
- name: Build
working-directory: ${{ env.working_dir }}
run: pnpm run build
- name: Add git commit tag to env
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Publish to npm
working-directory: ${{ env.working_dir }}
run: |
npm version --no-git-tag-version prerelease --preid=${SHORT_SHA} --force
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0e00572

Please sign in to comment.