forked from woodruffw/screenfetch-c
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.43 KB
/
ci_test.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
41
42
43
44
45
46
47
# Credits: wenxinyiyan(baidu's "chatgpt"), xmake devs
# Not finished yet
name: Build and Test
on:
pull_request:
types: [review_requested]
workflow_dispatch:
jobs:
build_and_test_on_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: config APE
run: |
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"
- name: Build with xmake
run: xmake -yvD
- name: Runs on ubuntu-latest
run: xmake run
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: Artifact_Files
path: build/linux/x86_64
# - name: Upload Build Artifacts to GitHub Release
# uses: svenstaro/[email protected]
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: build/linux/x86_64/release/screenfetch-c.com
# asset_name: screenfetch-c.com
# tag: ${{ github.ref }}
# overwrite: true