Add C++ to README (#1407) #2857
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: build | |
env: | |
COSMOCC_VERSION: 3.9.2 | |
on: | |
push: | |
branches: | |
- "master" | |
- "flake" | |
pull_request: | |
branches: | |
- "master" | |
# run workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
matrix_on_mode: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
mode: ["", tiny, rel, tinylinux, optlinux] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Full checkout needed for git-restore-mtime-bare. | |
fetch-depth: 0 | |
# TODO(jart): fork this action. | |
- uses: chetan/git-restore-mtime-action@v2 | |
- uses: actions/cache@v4 | |
with: | |
path: .cosmocc/${{ env.COSMOCC_VERSION }} | |
key: cosmocc-${{ env.COSMOCC_VERSION }} | |
- uses: actions/cache@v4 | |
with: | |
path: o | |
key: o-${{ matrix.mode }}-${{ env.COSMOCC_VERSION }}-${{ github.sha }} | |
restore-keys: | | |
o-${{ matrix.mode }}-${{ env.COSMOCC_VERSION }}- | |
o-${{ matrix.mode }}- | |
o- | |
- name: support ape bins 1 | |
run: sudo cp -a build/bootstrap/ape.elf /usr/bin/ape | |
- name: support ape bins 2 | |
run: sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" | |
- name: make matrix | |
run: V=0 make -j2 MODE=${{ matrix.mode }} |