Sniff around in the environment #14
Workflow file for this run
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: CI | |
on: | |
push: | |
branches-ignore: | |
- main | |
env: | |
OBSD_MIRROR: https://cdn.openbsd.org/pub/OpenBSD/7.4 | |
OBSD_VERSION: "7.4" | |
PKG_DEPS_GENERAL: cmake ninja python%3.10 | |
PKG_DEPS_CLI: | | |
py3-build py3-installer py3-flit_core py3-wheel py3-setuptools py3-colorama py3-docutils py3-cryptography py3-ruamel.yaml py3-ruamel.yaml.clib py3-prompt_toolkit py3-distro py3-dateutil py3-jmespath py3-urllib3 | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
uses: cross-platform-actions/action@v0.21.1 | |
env: | |
PORTSDIR: /Users/runner/ports | |
with: | |
operating_system: openbsd | |
architecture: x86-64 | |
version: "${{ env.OBSD_VERSION }}" | |
environment_variables: PORTSDIR | |
shell: bash | |
sync_files: runner-to-vm | |
run: | | |
pwd | |
# /Users/runner/work/awscliv2-on-openbsd/awscliv2-on-openbsd | |
ls -l | |
finger runner | |
env | |
cd ~ | |
pwd | |
# sudo pkg_add -Iv ${{ env.PKG_DEPS_GENERAL }} ${{ env.PKG_DEPS_CLI }} | |
# cd ~ | |
# ftp -ao - -V -M ${{ env.OBSD_MIRROR }}/ports.tar.gz | tar zxphf - | |
# mv ~/work/awscliv2-on-openbsd/awscliv2-on-openbsd/ports/sysutils/awscliv2 ~/ports/sysutils | |
# mv ~/work/awscliv2-on-openbsd/awscliv2-on-openbsd/ports/devel/py-awscrt ~/ports/devel | |
# sudo sh -c 'echo SUDO=sudo >> /etc/mk.conf' | |
# cd ~/ports/devel/py-awscrt | |
# #make makesum | |
# #make update-plist | |
# make install | |
# cd ~/ports/sysutils/awscliv2 | |
# #make makesum | |
# #make update-plist | |
# make install | |
# - name: Check for modified files | |
# id: git-check | |
# run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi) | |
# | |
# - name: Push changes back to branch | |
# if: steps.git-check.outputs.modified == 'true' | |
# run: | | |
# git config --global user.name 'Your Name' | |
# git config --global user.email 'Your Email for GitHub' | |
# git add -A | |
# git commit -m '[automated commit] add configs generated using jsonnet & GitHub workflow' | |
# git push |