-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from redwirelabs/add-basic-swtpm
Initial builder wrapper for swtpm
- Loading branch information
Showing
6 changed files
with
227 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-24.04 | ||
- ubuntu-22.04 | ||
- macos-13 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Set up Elixir | ||
if: ${{ startsWith(matrix.os, 'ubuntu') }} | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: "27.1.3" | ||
elixir-version: "1.17.3" | ||
- name: Set up Elixir | ||
if: ${{ startsWith(matrix.os, 'macos') }} | ||
run: brew install elixir | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Get dependencies | ||
run: mix deps.get --only dev | ||
- name: Restore PLTs | ||
uses: actions/cache@v4 | ||
with: | ||
path: _build/dev/plt | ||
key: plt-${{ github.ref }}-${{ github.sha }} | ||
restore-keys: | | ||
plt-${{ github.ref }}-${{ github.sha }} | ||
plt-${{ github.ref }}- | ||
plt-refs/heads/master- | ||
- name: Install system deps | ||
if: ${{ startsWith(matrix.os, 'ubuntu') }} | ||
run: | | ||
sudo apt install \ | ||
build-essential \ | ||
devscripts \ | ||
equivs \ | ||
libtasn1-6-dev \ | ||
libjson-glib-dev \ | ||
libseccomp-dev \ | ||
libgmp-dev | ||
- name: Install system deps | ||
if: ${{ startsWith(matrix.os, 'macos') }} | ||
run: brew install automake gawk socat json-glib | ||
- name: Compile | ||
run: mix compile | ||
type_check: | ||
name: Type Check | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Set up Elixir | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: "27.1.3" | ||
elixir-version: "1.17.3" | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Get dependencies | ||
run: mix deps.get --only dev | ||
- name: Restore PLTs | ||
uses: actions/cache@v4 | ||
with: | ||
path: _build/dev/plt | ||
key: plt-${{ github.ref }}-${{ github.sha }} | ||
restore-keys: | | ||
plt-${{ github.ref }}-${{ github.sha }} | ||
plt-${{ github.ref }}- | ||
plt-refs/heads/master- | ||
- name: Install system deps | ||
run: | | ||
sudo apt install \ | ||
build-essential \ | ||
devscripts \ | ||
equivs \ | ||
libtasn1-6-dev \ | ||
libjson-glib-dev \ | ||
libseccomp-dev \ | ||
libgmp-dev | ||
- name: Compile | ||
run: mix compile | ||
- name: Run dialyzer | ||
run: mix dialyzer |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/_build/ | ||
/cover/ | ||
/data/ | ||
/deps/ | ||
/doc/ | ||
/.fetch | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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