actions: update upload-artifact to v4 #1
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: CI | |
on: | |
push: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build native | |
run: make native | |
- name: Install cosmopolitan | |
run: | | |
# Avoid launching MZ exe in wine | |
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf | |
sudo chmod +x /usr/bin/ape | |
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" | |
sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" | |
mkdir cosmopolitan | |
wget https://cosmo.zip/pub/cosmocc/cosmocc.zip | |
unzip -d cosmopolitan cosmocc.zip | |
# Make sure it works | |
./cosmopolitan/bin/make --version | |
- name: Build cosmopolitan | |
run: make COSMOCC=./cosmopolitan | |
- name: Upload Cosmopolitan EXE | |
uses: actions/upload-artifact@v4 | |
with: | |
name: gpu_cfg_gen.exe | |
path: gpu_cfg_gen.exe |