Skip to content

Commit

Permalink
Add build workflow (to finish)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamos82 committed Oct 2, 2023
1 parent fb45e1b commit cc51bf8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Dreamos Build

on:
push:
branches: [ fix_psf_makefile ]
pull_request:
branches: [ fix_psf_makefile ]

jobs:
build-dreamos:

runs-on: ubuntu-latest

steps:

- name: Prepare cache for binaries
uses: actions/cache@v2
id: cached-binaries
with:
path: |
**/gcc-x86_64-cross
- name: Install llvm and clang
run: sudo apt install lld llvm

- name: Download gcc
if: steps.cached-compiler-binaries.outputs.cache-hit != 'true'
run: >
mkdir toolchains
wget https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--glibc--stable-2022.08-1.tar.bz2 -O toolchains/gcc-x86_64;
cd toolchains;
tar -vxf gcc-x86_64; mv x86-64--glibc--stable-2022.08-1 gcc-x86_64-cross;
- uses: actions/checkout@v2
with:
path: dreamos

- name: Compile with gcc
run: |
cd dreamos;
ls;
make clean
2 changes: 1 addition & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C/C++ CI
name: Dreamos Tests

on:
push:
Expand Down

0 comments on commit cc51bf8

Please sign in to comment.