From 72bcb3879d5bc02a5f9a6b007abdeb4337f73f7f Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Fri, 27 Sep 2024 15:42:17 +1200 Subject: [PATCH] fix --- .editorconfig | 16 +++++++++++++ .github/workflows/release.yml | 44 ++++++++++++++--------------------- scripts/rocksdb.sh | 1 + 3 files changed, 35 insertions(+), 26 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..80c15e7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true +[*] +indent_style=tab +indent_size=tab +tab_width=4 +end_of_line=lf +charset=utf-8 +trim_trailing_whitespace=true +max_line_length=120 +insert_final_newline=true + +[*.{yml,yaml}] +indent_style=space +indent_size=2 +tab_width=8 +end_of_line=lf diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a277d4..219f05c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,10 +2,8 @@ name: Release on: push: - branches: - - master - # tags: - # - '*' + tags: + - '*' permissions: contents: write # required for creating release and uploading assets @@ -27,12 +25,6 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive - # - name: Install deps (Ubuntu) - # if: runner.os == 'Linux' - # uses: awalsh128/cache-apt-pkgs-action@latest - # with: - # packages: lttng-tools lttng-modules-dkms babeltrace2 liblttng-ust-dev python3-babeltrace - # version: 1.0 - name: Build run: ./build.sh - name: Compress build output @@ -45,19 +37,19 @@ jobs: path: ${{ matrix.os }}-build.tar.gz retention-days: 1 - # create-release: - # name: Create Release - # needs: build-and-upload - # runs-on: ubuntu-latest - # steps: - # - name: Download Artifacts - # uses: actions/download-artifact@v4 - # - name: Create Release - # id: create_release - # uses: softprops/action-gh-release@v2 - # with: - # make_latest: true - # generate_release_notes: true - # files: | - # ubuntu-latest-build/ubuntu-latest-build.tar.gz - # macos-latest-build/macos-latest-build.tar.gz \ No newline at end of file + create-release: + name: Create Release + needs: build-and-upload + runs-on: ubuntu-latest + steps: + - name: Download Artifacts + uses: actions/download-artifact@v4 + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v2 + with: + make_latest: true + generate_release_notes: true + files: | + ubuntu-latest-build/ubuntu-latest-build.tar.gz + macos-latest-build/macos-latest-build.tar.gz diff --git a/scripts/rocksdb.sh b/scripts/rocksdb.sh index b2e9ce3..28ffacc 100755 --- a/scripts/rocksdb.sh +++ b/scripts/rocksdb.sh @@ -18,6 +18,7 @@ cd rocksdb || { echo "directory not found"; exit 1; } make static_lib +strip librocksdb.a cp librocksdb.a ${out_dir} echo "rocksdb built successfully"