diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a73a75a..079f8f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,6 +35,7 @@ jobs: - stable steps: - uses: actions/checkout@v3 + - name: Build library uses: houseabsolute/actions-rust-cross@v0 with: @@ -47,24 +48,10 @@ jobs: run: cp generator/target/${{ matrix.platform.target }}/release/libgenerator.${{ matrix.platform.origin_dylib_suffix }} lua/${{ matrix.platform.os_name }}generator.${{ matrix.platform.dest_dylib_suffix }} - name: Commit changes - uses: EndBug/add-and-commit@v9 + uses: stefanzweifel/git-auto-commit-action@v5 with: - tag_push: '--force' - pull: '--rebase' - message: "[Update] build FFI dynamic library" - # - name: Rename binary (linux and macos) - # run: mv target/${{ matrix.platform.target }}/release/figctl target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} - # if: matrix.platform.os_name != 'Windows-x86_64' - # - # - name: Rename binary (windows) - # run: mv target/${{ matrix.platform.target }}/release/figctl.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} - # if: matrix.platform.os_name == 'Windows-x86_64' - # - name: Generate SHA-256 - # run: shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256 - # - # - name: Release binary and SHA-256 checksum to GitHub - # uses: softprops/action-gh-release@v1 - # with: - # files: | - # target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} - # target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256 + commit_message: "[Update] build FFI dynamic library" + push_options: '--force' + skip_dirty_check: true + skip_fetch: true +