From 365a838ecd7b57eacccb4f199f0b6ab090b34ad1 Mon Sep 17 00:00:00 2001 From: iosh Date: Sun, 1 Dec 2024 21:28:52 +0800 Subject: [PATCH] chore: remove unused github workflow --- .github/workflows/release.yml | 109 ---------------------------------- 1 file changed, 109 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 54887c9..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,109 +0,0 @@ -name: Release - -on: workflow_dispatch - -jobs: - build: - strategy: - matrix: - include: - - os: ubuntu-22.04 - target: x86_64-unknown-linux-gnu - code-target: linux-x64 - - os: macos-14 - target: aarch64-apple-darwin - code-target: darwin-arm64 - - name: Package ${{ matrix.code-target }} - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - with: - submodules: "recursive" - - - name: Install Rust toolchain - run: | - rustup install 1.77.2 - rustup target add ${{ matrix.target }} - - - name: Set up Homebrew - if: matrix.code-target == 'darwin-arm64' || matrix.code-target == 'linux-x64' - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - - - name: Install macos dependencies - if: matrix.code-target == 'darwin-arm64' - run: | - brew update - brew install llvm openssl - - - name: Install linux dependencies - if: matrix.code-target == 'linux-x64' - run: | - brew install llvm openssl pkg-config cmake sqlite - - - name: Print clang version - run: clang --version - - - name: Build binaries - run: | - cd conflux-rust - CC=clang CXX=clang++ CXXFLAGS="-std=c++11 -stdlib=libc++" LDFLAGS="-stdlib=libc++" cargo build --bin conflux --target ${{ matrix.target }} --release - cd .. - - - name: Copy binaries - if: matrix.os != 'windows-2022' - run: | - mkdir dist - cp conflux-rust/target/${{ matrix.target }}/release/conflux dist/conflux-${{ matrix.code-target }} - - - uses: actions/upload-artifact@v4 - with: - path: ./dist/ - retention-days: 1 - overwrite: true - name: conflux-${{ matrix.code-target }} - publish: - name: Publish - runs-on: ubuntu-latest - permissions: - contents: write - id-token: write - pull-requests: write - needs: build - steps: - - uses: actions/checkout@v4 - - - name: Download binaries - uses: actions/download-artifact@v4 - with: - pattern: conflux-* - merge-multiple: true - - - name: Copy binaries - run: | - cp ./conflux-linux-x64 ./packages/node-linux-x64/conflux - cp ./conflux-darwin-arm64 ./packages/node-darwin-arm64/conflux - - name: Make Linux binaries executable - run: chmod +x ./packages/*/conflux - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - - uses: pnpm/action-setup@v4 - with: - version: 9 - - name: Install dependencies - run: pnpm install - - - name: Publish to NPM - uses: changesets/action@v1 - with: - createGithubReleases: ${{ github.ref == 'refs/heads/main' }} - publish: pnpm changeset:publish - version: pnpm changeset:version - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file