Skip to content

Commit

Permalink
Merge pull request #11 from anoma/fix_ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
XuyangSong authored Dec 2, 2024
2 parents 69a5bc5 + c32e0de commit 93d1972
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 70 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/docs/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- uses: ./.github/workflows/checks

- uses: ./.github/workflows/format
if: ${{ !cancelled() }}
if: ${{ !cancelled() }}
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
- uses: ./.github/workflows/setup
if: steps.try_merge.outcome != 'failure'
with:
fail-on-failure: true
fail-on-failure: false

- uses: ./.github/workflows/checks
if: steps.try_merge.outcome != 'failure'


- uses: ./.github/workflows/format
if: ${{ !cancelled() && steps.try_merge.outcome != 'failure' }}
if: ${{ !cancelled() && steps.try_merge.outcome != 'failure' }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:
- uses: ./.github/workflows/docs
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
release: ${{ true }}
release: ${{ true }}
26 changes: 0 additions & 26 deletions .github/workflows/release_pre_built/action.yml

This file was deleted.

24 changes: 15 additions & 9 deletions .github/workflows/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ runs:
steps:
- name: Set up Elixir
id: beam
uses: erlef/setup-beam@v1.16.0
uses: erlef/setup-beam@v1.18.2
with:
elixir-version: '1.15.6'
otp-version: '26.1.2'
elixir-version: '1.17.3'
otp-version: '27.1'

- name: Restore dependencies cache
id: deps-cache
uses: actions/[email protected]
with:
path: deps
path: |
deps
_build
key: |
mix-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
mix-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-
mix-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
- name: Fail on dependencies cache miss
shell: bash
Expand All @@ -36,9 +38,13 @@ runs:
shell: bash
run: mix deps.get

- name: Build dependencies
- name: Build dependencies dev
shell: bash
run: MIX_ENV=dev mix deps.compile

- name: Build dependencies test
shell: bash
run: mix deps.compile
run: MIX_ENV=test mix deps.compile

- name: Restore PLT cache
id: plt-cache
Expand All @@ -48,9 +54,9 @@ runs:
key: |
plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-
plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
- name: Fail on PLT cache miss
shell: bash
if: ${{ (inputs.fail-on-failure == 'true') && steps.plt-cache.outputs.cache-hit != 'true' }}
run: /bin/false
run: /bin/false

0 comments on commit 93d1972

Please sign in to comment.