Test OpenBSD Action #24
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
name: Test OpenBSD Action | |
on: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: A job to run test in OpenBSD | |
env: | |
# MYTOKEN : ${{ secrets.MYTOKEN }} | |
MYTOKEN2: "value2" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test in OpenBSD | |
id: test | |
uses: vmactions/openbsd-vm@v1 | |
with: | |
envs: 'MYTOKEN2' | |
usesh: true | |
prepare: | | |
pkg_add curl git iconv libiconv | |
run: | | |
pkg_info -L libiconv | |
echo "Rebol [] unprotect 'system/platform system/platform: 'openbsd" > ~/user.reb | |
cat ~/user.reb | |
cd .. | |
git clone -b bootstrap https://github.com/Siskin-framework/Rebol.git --depth 1 | |
ls -la ./ | |
cd ./Rebol/make/ | |
make -f rebol-bsd-bootstrap-64bit.mk | |
ls -la . | |
mv ./rebol-bsd-bootstrap-64bit ../../Builder/r3 | |
cd ../../Builder | |
./r3 siskin.r3 rebol rebol3-bulk-openbsd-x64 | |
mv ./tree/rebol/Rebol/build/rebol3-bulk-openbsd-x64 ./rebol3-bulk-openbsd-x64 | |
./rebol3-bulk-openbsd-x64 siskin.r3 rebol/siskin 2 | |
mv ./tree/rebol/Siskin/build/siskin-openbsd-x86_64 ./siskin-openbsd-x86_64 | |
- name: Prepare build results | |
run: | | |
gzip -9 ./rebol3-bulk-openbsd-x64 | |
gzip -9 ./siskin-openbsd-x86_64 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Rebol-OpenBSD-${{github.run_id}} | |
path: ./rebol3*.gz | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Siskin-OpenBSD-${{github.run_id}} | |
path: ./siskin*.gz |