Skip to content

Commit

Permalink
Erlang Scheduler friendly implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
vs-ads committed Mar 19, 2024
1 parent d6cac57 commit e518ad8
Show file tree
Hide file tree
Showing 22 changed files with 2,654 additions and 13 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on:
workflow_dispatch:
inputs:
erlang:
description: Erlang OTP version to test
default: '26.0.2.0-slim'
required: false
push:
branches: [master]
pull_request:
branches: [master]

jobs:
checks:
runs-on: [self-hosted, ubuntu-22.04-medium]
strategy:
matrix:
erlang: [26]
container:
image: erlang:${{ matrix.erlang }}

steps:
- uses: actions/checkout@v4

- name: Cache
uses: actions/cache@v2
env:
cache-name: rebar3
with:
path: |
~/.cache/rebar3
_build
key: ci-${{runner.os}}-${{env.cache-name}}-erlang_${{matrix.erlang}}-rebar3-${{hashFiles('rebar.lock')}}
restore-keys: |
ci-${{runner.os}}-${{env.cache-name}}-erlang_${{matrix.erlang}}-rebar3
ci-${{runner.os}}-${{env.cache-name}}-erlang_${{matrix.erlang}}
- name: Get GitHub token
id: get_token
uses: getsentry/action-github-app-token@v2
with:
private_key: ${{ secrets.PRIVATE_REPO_APP_PEM_RAW }}
app_id: ${{ secrets.PRIVATE_REPO_APP_ID }}

- name: Setup private repo access
run: |
git config --global url."https://oauth2:${GITHUB_TOKEN}@github.com/adgear".insteadOf "https://github.com/adgear"
git config --global --add url."https://oauth2:${GITHUB_TOKEN}@github.com/".insteadOf "ssh://[email protected]:"
git config --global --add url."https://oauth2:${GITHUB_TOKEN}@github.com/".insteadOf "ssh://[email protected]/"
git config --global --add url."https://oauth2:${GITHUB_TOKEN}@github.com/".insteadOf "[email protected]:"
git config --global --add url."https://oauth2:${GITHUB_TOKEN}@github.com/".insteadOf "[email protected]/"
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

- name: Compile
run: |
./rebar3 compile
- name: Check
run: |
./rebar3 xref
./rebar3 dialyzer
./rebar3 eunit
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ tags
c_src/*.o
c_src/compile_commands.json
be-tree/*

.idea
cmake-build-debug
**/*.txt
*.beam
be-tree*/
saved
Loading

0 comments on commit e518ad8

Please sign in to comment.