This GitHub action will download and cache your mix dependencies, compile the mix dependencies, and compile your mix application.
steps:
- uses: 'actions/checkout@v3'
- uses: 'erlef/setup-beam@v1'
with:
elixir-version: '1.15.1'
otp-version: '25.3.2.2'
version-type: 'strict'
- uses: 'ex-actions/setup-mix@main'
- name: 'mix test'
run: 'mix test'
- uses: 'ex-actions/setup-mix@main'
- uses: 'ex-actions/setup-mix@main'
with:
working-directory: 'backend'
- uses: 'ex-actions/setup-mix@main'
with:
working-directory: 'advanced_math'
cache-key: '${{ env.rust-version }}-${{ hashFiles('**/*.rs') }}'
If your project uses @external_resources
, they may not be supported here.
There is limited support for file-extensions and search paths based on your
application's dependencies. If you need granular support of your application
src files, you can pass a cache-key
(see above for examples).