From 0951e30af7f352ca35444b4c38b96c8d7f6905ec Mon Sep 17 00:00:00 2001 From: Noah Too Date: Mon, 1 Apr 2024 12:16:06 +0300 Subject: [PATCH] fix(ci): readd windows release build --- .cargo/config | 12 +----- .github/workflows/release.yml | 74 +++++++++++++++++------------------ 2 files changed, 38 insertions(+), 48 deletions(-) diff --git a/.cargo/config b/.cargo/config index 480ea33..59c989e 100644 --- a/.cargo/config +++ b/.cargo/config @@ -8,14 +8,4 @@ rustflags = [ rustflags = [ "-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup", -] - -[target.x86_64-pc-windows-msvc] -rustflags = [ - "-C", "link-arg=/FORCE:UNRESOLVED", -] - -[target.aarch64-pc-windows-msvc] -rustflags = [ - "-C", "link-arg=/FORCE:UNRESOLVED", -] +] \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da70e86..1c72fb5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,42 +41,42 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # build-win: - # name: Publish Windows release - # runs-on: windows-latest - # - # steps: - # - name: Checkout - # uses: actions/checkout@v1 - # - # - name: Install latest rust toolchain - # uses: actions-rs/toolchain@v1 - # with: - # toolchain: stable - # default: true - # override: true - # - # - name: Build - # run: cargo build --all --release - # - # - name: Copy file - # run: copy target\release\silicon.dll .\lua - # shell: cmd - # - # - name: Archive Release - # uses: thedoctor0/zip-release@main - # with: - # type: 'zip' - # path: 'lua' - # filename: 'silicon-win.zip' - # - # - name: Release - # uses: softprops/action-gh-release@v1 - # if: startsWith(github.ref, 'refs/tags/') - # with: - # files: silicon-win.zip - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build-win: + name: Publish Windows release + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Install latest rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + + - name: Build + run: cargo build --all --release + + - name: Copy file + run: copy target\release\silicon.dll .\lua + shell: cmd + + - name: Archive Release + uses: thedoctor0/zip-release@main + with: + type: 'zip' + path: 'lua' + filename: 'silicon-win.zip' + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: silicon-win.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} build-mac: name: Publish MacOS release @@ -154,4 +154,4 @@ jobs: files: | silicon-mac-arm64.tar.gz env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file