-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from 5GameMaker/master
Windows support
- Loading branch information
Showing
8 changed files
with
92 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[target.x86_64-pc-windows-msvc] | ||
linker = "lld-link" | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
linker = "clang" | ||
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,9 @@ jobs: | |
- uses: ningenMe/[email protected] | ||
- uses: awalsh128/cache-apt-pkgs-action@v1 | ||
with: | ||
packages: musl-tools gcc-multilib | ||
packages: musl-tools mold gcc-mingw-w64 | ||
version: 1.0 | ||
- run: cargo install cargo-xwin --locked | ||
|
||
- name: Create release dir | ||
run: rm -fr target/github-release && mkdir -p target/github-release | ||
|
@@ -52,6 +53,20 @@ jobs: | |
run: cargo build --verbose --release --target i686-unknown-linux-gnu | ||
- name: Copy i686-unknown-linux-gnu artifact | ||
run: cp target/i686-unknown-linux-gnu/release/discord-backup-util target/github-release/discord-backup-util.i686-unknown-linux-gnu | ||
|
||
- name: Install x86_64-pc-windows-gnu toolchain | ||
run: rustup target add x86_64-pc-windows-gnu | ||
- name: Build for x86_64-pc-windows-gnu | ||
run: cargo build --verbose --release --target x86_64-pc-windows-gnu | ||
- name: Copy x86_64-pc-windows-gnu artifact | ||
run: cp target/x86_64-pc-windows-gnu/release/discord-backup-util.exe target/github-release/discord-backup-util.x86_64-pc-windows-gnu.exe | ||
|
||
- name: Install x86_64-pc-windows-msvc toolchain | ||
run: rustup target add x86_64-pc-windows-msvc | ||
- name: Build for x86_64-pc-windows-msvc | ||
run: cargo xwin build --verbose --release --target x86_64-pc-windows-msvc | ||
- name: Copy x86_64-pc-windows-msvc artifact | ||
run: cp target/x86_64-pc-windows-msvc/release/discord-backup-util.exe target/github-release/discord-backup-util.x86_64-pc-windows-msvc.exe | ||
|
||
- uses: colathro/[email protected] | ||
id: crate-version | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters