Skip to content

Commit df8b1e2

Browse files
committed
fixup actions and use 'cargo make windows' instead of 'cargo make msvc'
1 parent 7c48814 commit df8b1e2

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/build-everything.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
runs-on: windows-latest
2020
strategy:
2121
matrix:
22+
targetos: ["linux", "windows"]
2223
targetbits: ["x32", "x64"]
23-
targetos: ["linux", "msvc"]
2424

2525
steps:
2626
- name: Prepare env
2727
shell: bash
2828
run: echo "GITHUB_SHA_SHORT=${GITHUB_SHA::7}" >> $GITHUB_ENV
29+
# checkout current repo...
2930
- uses: actions/checkout@v4
3031
- name: Install cargo-binstall
3132
uses: cargo-bins/[email protected]
@@ -37,7 +38,7 @@ jobs:
3738
# This is `cargo make full` but turned into steps so you can have better progress visibility
3839
- name: Install Rust toolchains
3940
run: |
40-
cargo make rustup-${{ matrix.os }}
41+
cargo make --profile ${{ matrix.targetbits }} rustup-${{ matrix.targetos }}
4142
- name: Clone alliedmodders repositories
4243
run: cargo make clone-alliedmodders
4344
- name: Setup SourcePawn Compiler
@@ -59,5 +60,5 @@ jobs:
5960
- name: Upload package
6061
uses: actions/upload-artifact@v4
6162
with:
62-
name: srcwrtimer-${{ github.head_ref || github.ref_name }}-${{ env.GITHUB_SHA_SHORT }}
63+
name: srcwrtimer-${{ github.head_ref || github.ref_name }}-${{ env.GITHUB_SHA_SHORT }}-${{ matrix.targetos }}-${{ matrix.targetbits }}
6364
path: _package/srcwrtimer

Makefile.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ dependencies = [
3737
[tasks.full.windows]
3838
dependencies = [
3939
"rustup-linux",
40-
"rustup-msvc",
40+
"rustup-windows",
4141
"clone-alliedmodders",
4242
"install-sm-bins",
4343
"install-zig",
4444
"linux",
45-
"msvc",
45+
"windows",
4646
"copy-srcwrtimer",
4747
"copy-extensions",
4848
"compile-srcwrtimer-scripts",
4949
]
5050

5151
[tasks.x]
5252
dependencies = [
53-
"msvc",
53+
"windows",
5454
"copy-srcwrtimer",
5555
"copy-extensions",
5656
"compile-srcwrtimer-scripts",
5757
]
5858

5959
[tasks.y]
6060
dependencies = [
61-
"msvc",
61+
"windows",
6262
"copy-srcwrtimer",
6363
"copy-extensions",
6464
]
@@ -315,14 +315,18 @@ command = "cargo"
315315
# objdump -T bin/*.so | grep GLIBC | sed 's/.*GLIBC_\([.0-9]*\).*/\1/g' | sort -Vu
316316
args = ["zigbuild", "--release", "--target", "${TARGETARCH}-unknown-linux-gnu.2.29"]
317317

318+
# alias :^)
318319
[tasks.msvc]
320+
dependencies = ["windows"]
321+
322+
[tasks.windows]
319323
toolchain = "nightly"
320324
command = "cargo"
321325
#env = { "CARGO_LOG" = "cargo::core::compiler::fingerprint=info" }
322326
args = ["build", "--release", "--target", "${TARGETARCH}-pc-windows-msvc"]
323327

324328
# TODO: xwin not quite worky...
325-
#[tasks.msvc.linux]
329+
#[tasks.windows.linux]
326330
#toolchain = "nightly"
327331
#command = "cargo"
328332
#args = ["xwin", "build", "--xwin-arch", "x86", "--release", "--target", "${TARGETARCH}-pc-windows-msvc"]
@@ -336,7 +340,7 @@ toolchain = "nightly"
336340
command = "rustup"
337341
args = ["target", "add", "${TARGETARCH}-unknown-linux-gnu"]
338342

339-
[tasks.rustup-msvc]
343+
[tasks.rustup-windows]
340344
toolchain = "nightly"
341345
command = "rustup"
342346
args = ["target", "add", "${TARGETARCH}-pc-windows-msvc"]

0 commit comments

Comments
 (0)