forked from bullno1/cosmo-sokol
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1020 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
run-name: Build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
- push
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install deps
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libx11-dev libgl-dev libxcursor-dev libxi-dev
version: "@latest"
- name: Download cosmopolitan
uses: bjia56/setup-cosmocc@main
with:
version: "3.9.6"
- name: Build
run: ./build
- name: Package binaries
if: startsWith(github.ref, 'refs/tags/')
run: |
cd bin
zip -r cosmo-sokol.zip *
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
bin/cosmo-sokol.zip