Skip to content

Commit

Permalink
chore: test new dockerhub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 20, 2024
1 parent a24cf6f commit d83d043
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-dockerhub-alt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
config:
- { platform: linux-x64, os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { platform: linux-arm64, os: ubuntu-latest, target: aarch64-unknown-linux-musl }
- { platform: linux-arm64, os: ubuntu-latest, target: aarch64-unknown-linux-gnu }
environment: PROD
env:
CARGO_SERVER_SSL_CA: ${{ secrets.SERVER_SSL_CA }}
Expand All @@ -41,12 +41,18 @@ jobs:
- name: Create empty .env file
run: touch .env

- name: Install cross
- name: Install cross (Linux ARM64 only)
if: matrix.config.target == 'aarch64-unknown-linux-musl'
run: cargo install cross

- name: Build Binary
run: cross build --locked --release --target ${{ matrix.config.target }}

if: matrix.config.os != 'windows-latest'
run: |
if [ "${{ matrix.config.target }}" == "aarch64-unknown-linux-musl" ]; then
cross build --locked --release --target ${{ matrix.config.target }}
else
cargo build --locked --release --target ${{ matrix.config.target }}
fi
# - name: Run Tests
# run: cross test --verbose --target ${{ matrix.config.target }}

Expand Down

0 comments on commit d83d043

Please sign in to comment.