Skip to content

Commit

Permalink
[CI] Automatically compile and package Windows binaries for releases
Browse files Browse the repository at this point in the history
Let's try this and see if I like the result…
…and I do!

• While this action uses the `x86_64-pc-windows-gnu` triple instead of
  `x86_64-pc-windows-msvc` and is therefore slightly less native with
  the additional dependency on MSVCRT.DLL, it's only 44 KiB larger,
  which is more than offset by specifying `codegen-units = 1`.

• *Any* type of CI build avoids the inherent path leaking problem with
  PDBs, without requiring any of the crazy and nightly-exclusive flags
  documented at https://github.com/johnthagen/min-sized-rust,

Part of P0268, funded by Ember2528.
  • Loading branch information
nmlgc committed Feb 29, 2024
1 parent 1c4af56 commit db0c195
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
release:
types: [created]

jobs:
release:
permissions: write-all
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu]
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "COPYING README.md"

0 comments on commit db0c195

Please sign in to comment.