Skip to content

Commit

Permalink
fix(ci): readd windows release build
Browse files Browse the repository at this point in the history
  • Loading branch information
krivahtoo committed Apr 1, 2024
1 parent 7d6b816 commit 0951e30
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 48 deletions.
12 changes: 1 addition & 11 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
]
74 changes: 37 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -154,4 +154,4 @@ jobs:
files: |
silicon-mac-arm64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0951e30

Please sign in to comment.