docs: add comprehensive launch scroll #3
Workflow file for this run
This file contains hidden or 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: codex-ci | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install deps | |
run: | | |
python -m pip install -U pip | |
pip install -r impl/python/requirements.txt | |
- name: Lint (syntax only) | |
run: | | |
python -m py_compile $(git ls-files 'impl/python/*.py') | |
- name: Crypto smoke test | |
run: | | |
mkdir -p keys | |
python impl/python/keygen_x25519.py | |
python impl/python/keygen_ed25519.py | |
echo "sovereign" > sample.txt | |
python impl/python/encrypt_v2.py keys/master_x25519.pub sample.txt out.bundle | |
python impl/python/decrypt_v2.py keys/master_x25519.key out.bundle --out decrypted.txt | |
diff -u sample.txt decrypted.txt | |
release: | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Bundle tools | |
run: | | |
tar -czf codex-tools.tar.gz impl/python impl/bash docs LICENSE README.md | |
sha256sum codex-tools.tar.gz > codex-tools.tar.gz.sha256 | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
codex-tools.tar.gz | |
codex-tools.tar.gz.sha256 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |