Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix releases, aarch64 host_core tarball, better Makefiles #451

Merged
merged 8 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
*/Makefile
*/README*
*/test/
*/target/debug/
*/target/release/
*/*/*/target/debug/
*/*/*/target/release/
23 changes: 7 additions & 16 deletions .github/workflows/host_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
elixir: [1.13.3]
otp: [23, 24]
elixir: [1.13.4]
otp: [25]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉


name: Build and test
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up Visual Studio C++ toolchain for Windows
uses: ilammy/msvc-dev-cmd@v1
if: ${{ startswith(matrix.os, 'windows') }}
- uses: actions/checkout@v3

# Install erlang/OTP and elixir
- name: Install erlang and elixir
Expand All @@ -43,6 +40,7 @@ jobs:
brew install erlang
brew install elixir

# If dependencies aren't changing, retrieve cache
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v2
id: mix-cache #id to use in retrieve action
Expand All @@ -57,7 +55,6 @@ jobs:
run: |
mix local.rebar --force
mix local.hex --force

- name: Install Mix Dependencies
working-directory: ${{env.working-directory}}
if: steps.mix-cache.outputs.cache-hit != 'true'
Expand All @@ -74,35 +71,29 @@ jobs:
continue-on-error: true # Don't fail entire action with refactoring opportunities for now
run: mix credo --strict

- name: Determine lattice prefix
if: ${{ startswith(matrix.os, 'ubuntu') }} # Run on Ubuntu only as a temporary workaround to dependencies that aren't present on windows/mac runners
shell: bash
run: echo "wasmcloud_lattice_prefix=$(echo "${{ runner.os }}__${{ matrix.otp }}__${{ matrix.elixir }}__${{ env.working-directory }}" | sed 's/\./_/g')" >> $GITHUB_ENV

- name: Run Tests
if: ${{ startswith(matrix.os, 'ubuntu') }} # Run on Ubuntu only as a temporary workaround to dependencies that aren't present on windows/mac runners
working-directory: ${{env.working-directory}}
env:
EXTRA_TEST_ARGS: "--timeout 120000"
WASMCLOUD_LATTICE_PREFIX: ${{ env.wasmcloud_lattice_prefix }}
WASMCLOUD_RPC_TIMEOUT_MS: 3000
MIX_ENV: test
run: make test
run: |
WASMCLOUD_LATTICE_PREFIX=$(echo "${{ runner.os }}__${{ matrix.otp }}__${{ matrix.elixir }}__${{ env.working-directory }}" | sed 's/\./_/g') \
make test

- name: Retrieve PLT Cache
uses: actions/cache@v2
id: plt-cache
with:
path: host_core/priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles('host_core/mix.exs', 'host_core/mix.lock') }}

- name: Create PLTs
working-directory: ${{env.working-directory}}
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer --plt

- name: Run dialyzer
working-directory: ${{env.working-directory}}
continue-on-error: true # Don't fail entire action with dialyzer opportunities for now
Expand Down
Loading