-
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 #5 from 5GameMaker/master
More Windows + cleanups
- Loading branch information
Showing
4 changed files
with
54 additions
and
40 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 |
---|---|---|
|
@@ -19,59 +19,65 @@ jobs: | |
- uses: ningenMe/[email protected] | ||
- uses: awalsh128/cache-apt-pkgs-action@v1 | ||
with: | ||
packages: musl-tools mold gcc-mingw-w64 gcc-multilib gcc-mingw-w64-x86-64 clang-13 llvm-13 lld-13 llvm-dev | ||
packages: musl-tools mold gcc-mingw-w64 gcc-multilib gcc-mingw-w64-x86-64 gcc-mingw-w64-i686 clang-13 llvm-13 lld-13 llvm-dev | ||
version: 1.0 | ||
- run: cargo install cargo-xwin --locked | ||
- run: echo "XWIN_ARCH=x86,x86_64,aarch64,aarch" >> "$GITHUB_ENV" | ||
|
||
- name: Create release dir | ||
run: rm -fr target/github-release && mkdir -p target/github-release | ||
- name: Install x86_64-unknown-linux-gnu toolchain | ||
|
||
- name: Build for x86_64-unknown-linux-gnu | ||
run: rustup target add x86_64-unknown-linux-gnu | ||
cargo build --verbose --release --target x86_64-unknown-linux-gnu | ||
cp target/x86_64-unknown-linux-gnu/release/discord-backup-util \ | ||
target/github-release/discord-backup-util.x86_64-unknown-linux-gnu | ||
|
||
- name: Build for x86_64-unknown-linux-gnu | ||
run: cargo build --verbose --release --target x86_64-unknown-linux-gnu | ||
- name: Copy x86_64-unknown-linux-gnu artifact | ||
run: cp target/x86_64-unknown-linux-gnu/release/discord-backup-util target/github-release/discord-backup-util.x86_64-unknown-linux-gnu | ||
|
||
- name: Install x86_64-unknown-linux-musl toolchain | ||
run: rustup target add x86_64-unknown-linux-musl | ||
- name: Build for x86_64-unknown-linux-gnu | ||
run: cargo build --verbose --release --target x86_64-unknown-linux-musl | ||
- name: Copy x86_64-unknown-linux-musl artifact | ||
run: cp target/x86_64-unknown-linux-musl/release/discord-backup-util target/github-release/discord-backup-util.x86_64-unknown-linux-musl | ||
|
||
- name: Install i586-unknown-linux-gnu toolchain | ||
run: rustup target add i586-unknown-linux-gnu | ||
cargo build --verbose --release --target x86_64-unknown-linux-musl | ||
cp target/x86_64-unknown-linux-musl/release/discord-backup-util \ | ||
target/github-release/discord-backup-util.x86_64-unknown-linux-musl | ||
|
||
- name: Build for i586-unknown-linux-gnu | ||
run: cargo build --verbose --release --target i586-unknown-linux-gnu --no-default-features --features minreq | ||
- name: Copy i586-unknown-linux-gnu artifact | ||
run: cp target/i586-unknown-linux-gnu/release/discord-backup-util target/github-release/discord-backup-util.i586-unknown-linux-gnu | ||
|
||
- name: Install i686-unknown-linux-gnu toolchain | ||
run: rustup target add i686-unknown-linux-gnu | ||
run: rustup target add i586-unknown-linux-gnu | ||
cargo build --verbose --release --target i586-unknown-linux-gnu --no-default-features --features minreq | ||
cp target/i586-unknown-linux-gnu/release/discord-backup-util \ | ||
target/github-release/discord-backup-util.i586-unknown-linux-gnu | ||
|
||
- name: Build for i686-unknown-linux-gnu | ||
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 | ||
run: rustup target add i686-unknown-linux-gnu | ||
cargo build --verbose --release --target i686-unknown-linux-gnu | ||
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 | ||
run: rustup target add x86_64-pc-windows-gnu | ||
cargo build --verbose --release --target x86_64-pc-windows-gnu | ||
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] | ||
run: rustup target add x86_64-pc-windows-msvc | ||
cargo xwin build --verbose --release --target x86_64-pc-windows-msvc | ||
cp target/x86_64-pc-windows-msvc/release/discord-backup-util.exe \ | ||
target/github-release/discord-backup-util.x86_64-pc-windows-msvc.exe | ||
|
||
- name: Build for x86_64-pc-windows-gnu | ||
run: rustup target add x86_64-pc-windows-gnu | ||
cargo build --verbose --release --target x86_64-pc-windows-gnu | ||
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: Build for i686-pc-windows-gnu | ||
run: rustup target add i686-pc-windows-gnu | ||
cargo build --verbose --release --target i686-pc-windows-gnu | ||
cp target/i686-pc-windows-gnu/release/discord-backup-util.exe \ | ||
target/github-release/discord-backup-util.i686-pc-windows-gnu.exe | ||
|
||
- uses: 5GameMaker/crate-version@c1672654ea26c815a187066de39d91d97e174685 | ||
id: crate-version | ||
with: | ||
file: Cargo.toml | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
tag: v${{ steps.crate-version.outputs.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