Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Apr 26, 2024
1 parent 38b50d6 commit efd4e86
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: ci-backend

on:
push:
branches:
Expand All @@ -9,28 +10,41 @@ on:
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/backend.yaml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
backend-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1

- name: Create .env file
run: echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" > .env

- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh

- name: Rust Send HTTP GET Darwin
run: |
dfx start --background
pushd .
RUSTFLAGS=-Ctarget-cpu=mvp make test
popd
backend-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1

- name: Create .env file
run: echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" > .env

- name: Provision Linux
run: bash .github/workflows/provision-linux.sh

- name: Rust Send HTTP GET Linux
run: |
dfxvm update
Expand Down

0 comments on commit efd4e86

Please sign in to comment.