Skip to content

Commit

Permalink
test separate build action
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed May 19, 2024
1 parent c750049 commit 7bf1659
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,6 @@ env:
BUILD_TYPE: MinSizeRel

jobs:
# === Windows XP ===
winxp:
runs-on: windows-2019

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Build
shell: cmd
run: |
COPY /Y build\janet\janetconf.h vendor\janet\src\conf\janetconf.h
cd build
cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBUILD_WITH_ALL=ON ..
cmake --build . --config %BUILD_TYPE% --parallel
- name: Deploy
uses: actions/upload-artifact@v4
with:
name: "tic80-winxp"
path: |
build/bin/tic80.exe
build/bin/*.dll
- name: Build Pro
shell: cmd
run: |
COPY /Y build\janet\janetconf.h vendor\janet\src\conf\janetconf.h
cd build
cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBUILD_PRO=On -DBUILD_WITH_ALL=ON ..
cmake --build . --config %BUILD_TYPE% --parallel
# === Windows ===
windows:
runs-on: windows-2019
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/winxp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: winxp

on: [push, pull_request]

runs-on: windows-2019

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Build
shell: cmd
run: |
COPY /Y build\janet\janetconf.h vendor\janet\src\conf\janetconf.h
cd build
cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_WITH_ALL=ON ..
cmake --build . --config MinSizeRel --parallel
- name: Deploy
uses: actions/upload-artifact@v4
with:
name: "tic80-winxp"
path: |
build/bin/tic80.exe
build/bin/*.dll
- name: Build Pro
shell: cmd
run: |
COPY /Y build\janet\janetconf.h vendor\janet\src\conf\janetconf.h
cd build
cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_PRO=On -DBUILD_WITH_ALL=ON ..
cmake --build . --config MinSizeRel --parallel

0 comments on commit 7bf1659

Please sign in to comment.