Skip to content

Commit df3efb6

Browse files
committed
try testing built binaries
1 parent 2cdfdfd commit df3efb6

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/job.fixed-envmap-example.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,42 @@ jobs:
9090
overwrite: true
9191
path: ./envmap.com
9292
compression-level: 0
93+
test-ape:
94+
name: "Test APE"
95+
needs: [build-ape]
96+
strategy:
97+
fail-fast: false
98+
matrix:
99+
include:
100+
- platform: ubuntu-24.04
101+
type: 'nix'
102+
- platform: ubuntu-24.04-arm
103+
type: 'nix'
104+
- platform: macos-15-intel
105+
type: 'nix'
106+
- platform: macos-15
107+
type: 'nix'
108+
- platform: windows-latest
109+
type: 'win32'
110+
runs-on: ${{ matrix.platform }}
111+
steps:
112+
- name: "Setup: Download Artifact"
113+
uses: actions/download-artifact@v7
114+
with:
115+
name: envmap-APE
116+
- name: "Run: envmap.com (*nix)"
117+
if: matrix.type == 'nix'
118+
shell: bash
119+
run: chmod +x ./envmap.com && ./envmap.com
120+
- name: "Run: envmap.com (win32)"
121+
if: matrix.type == 'win32'
122+
shell: pwsh
123+
run: '& .\envmap.com'
124+
- name: "Run: envmap.com --strace (*nix)"
125+
if: matrix.type == 'nix' && (success() || failure())
126+
shell: bash
127+
run: ./envmap.com --strace --ftrace
128+
- name: "Run: envmap.com --strace (win32)"
129+
if: matrix.type == 'win32' && (success() || failure())
130+
shell: pwsh
131+
run: '& .\envmap.com --strace --ftrace'

.github/workflows/job.fixed-gjf.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,42 @@ jobs:
9090
overwrite: true
9191
path: ./google-java-format.com
9292
compression-level: 0
93+
test-ape:
94+
name: "Test APE"
95+
needs: [build-ape]
96+
strategy:
97+
fail-fast: false
98+
matrix:
99+
include:
100+
- platform: ubuntu-24.04
101+
type: 'nix'
102+
- platform: ubuntu-24.04-arm
103+
type: 'nix'
104+
- platform: macos-15-intel
105+
type: 'nix'
106+
- platform: macos-15
107+
type: 'nix'
108+
- platform: windows-latest
109+
type: 'win32'
110+
runs-on: ${{ matrix.platform }}
111+
steps:
112+
- name: "Setup: Download Artifact"
113+
uses: actions/download-artifact@v7
114+
with:
115+
name: google-java-format-APE
116+
- name: "download sample java file"
117+
if: matrix.type == 'nix'
118+
shell: bash
119+
run: curl -o sample.java 'https://raw.githubusercontent.com/elide-dev/graal/refs/heads/master/substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/PosixSignalHandlerSupport.java'
120+
- name: "download sample java file (windows)"
121+
if: matrix.type == 'win32'
122+
shell: pwsh
123+
run: curl -o sample.java 'https://raw.githubusercontent.com/elide-dev/graal/refs/heads/master/substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/PosixSignalHandlerSupport.java'
124+
- name: "Run: (*nix)"
125+
if: matrix.type == 'nix'
126+
shell: bash
127+
run: chmod +x ./google-java-format.com && ./google-java-format.com sample.java
128+
- name: "Run: (win32)"
129+
if: matrix.type == 'win32'
130+
shell: pwsh
131+
run: '& .\google-java-format.com sample.java'

0 commit comments

Comments
 (0)