Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .github/workflows/buildDaily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
run : |
mv nightly output

# ----------------------------
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: nightly-output
path: output/

# -----------------------
- name: Copy build result
#uses: openaf/ojob-action@v7
Expand Down Expand Up @@ -174,6 +181,13 @@ jobs:
run : |
mv t8 output

# ----------------------------
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: t8-output
path: output/

# -----------------------
- name: Copy build result
#uses: openaf/ojob-action@v7
Expand Down Expand Up @@ -215,3 +229,77 @@ jobs:
# prefix : t8/
# bucket : oafsh
# execute : true

test-nightly:
runs-on: ubuntu-latest
needs : build-nightly
permissions: {}

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: nightly-output
path: output

- name: Prepare Linux smoke test
working-directory: output
run: |
chmod +x oaf-linux-x86_64
./oaf-linux-x86_64 --install
test -L ojob || test -x ojob

- name: Smoke test Linux x86_64 version
working-directory: output
run: |
./oaf -v | tee /tmp/oaf-version.txt
grep -Eq '[0-9]' /tmp/oaf-version.txt

- name: Smoke test Linux x86_64 JavaScript execution
working-directory: output
run: |
./oaf -c 'print("ok")' | tee /tmp/oaf-js.txt
grep -qx 'ok' /tmp/oaf-js.txt

- name: Smoke test Alpine x86_64 artifact
working-directory: output
run: |
chmod +x oaf-alpine-x86_64
docker run --rm -v "$PWD:/work" -w /work alpine:latest sh -lc './oaf-alpine-x86_64 --install && (test -L ojob || test -x ojob) && ./oaf -v'

test-t8:
runs-on: ubuntu-latest
needs : build-t8
permissions: {}

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: t8-output
path: output

- name: Prepare Linux smoke test
working-directory: output
run: |
chmod +x oaf-linux-x86_64
./oaf-linux-x86_64 --install
test -L ojob || test -x ojob

- name: Smoke test Linux x86_64 version
working-directory: output
run: |
./oaf -v | tee /tmp/oaf-version.txt
grep -Eq '[0-9]' /tmp/oaf-version.txt

- name: Smoke test Linux x86_64 JavaScript execution
working-directory: output
run: |
./oaf -c 'print("ok")' | tee /tmp/oaf-js.txt
grep -qx 'ok' /tmp/oaf-js.txt

- name: Smoke test Alpine x86_64 artifact
working-directory: output
run: |
chmod +x oaf-alpine-x86_64
docker run --rm -v "$PWD:/work" -w /work alpine:latest sh -lc './oaf-alpine-x86_64 --install && (test -L ojob || test -x ojob) && ./oaf -v'
43 changes: 43 additions & 0 deletions .github/workflows/buildStable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ jobs:
mv oaf-* output
/tmp/oaf/opack install S3

# ----------------------------
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: stable-output
path: output/

# -----------------------
- name: Copy build result
#uses: openaf/ojob-action@v7
Expand Down Expand Up @@ -123,3 +130,39 @@ jobs:
# bucket : oafsh
# execute : true

test-stable:
runs-on: ubuntu-latest
needs : build-stable
permissions: {}

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: stable-output
path: output

- name: Prepare Linux smoke test
working-directory: output
run: |
chmod +x oaf-linux-x86_64
./oaf-linux-x86_64 --install
test -L ojob || test -x ojob

- name: Smoke test Linux x86_64 version
working-directory: output
run: |
./oaf -v | tee /tmp/oaf-version.txt
grep -Eq '[0-9]' /tmp/oaf-version.txt

- name: Smoke test Linux x86_64 JavaScript execution
working-directory: output
run: |
./oaf -c 'print("ok")' | tee /tmp/oaf-js.txt
grep -qx 'ok' /tmp/oaf-js.txt

- name: Smoke test Alpine x86_64 artifact
working-directory: output
run: |
chmod +x oaf-alpine-x86_64
docker run --rm -v "$PWD:/work" -w /work alpine:latest sh -lc './oaf-alpine-x86_64 --install && (test -L ojob || test -x ojob) && ./oaf -v'