-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
238 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ jobs: | |
#- { platform: sparc64-unknown-linux-gnu, os: linux, runner: ubuntu-latest, run: true } # Incompatible Ring: unknown Arch | ||
|
||
# MacOS | ||
- { platform: aarch64-apple-darwin, os: darwin, runner: macos-latest, run: false } | ||
- { platform: aarch64-apple-darwin, os: darwin, runner: macos-latest, run: true } | ||
- { platform: x86_64-apple-darwin, os: darwin, runner: macos-latest, run: true } | ||
|
||
# Windows | ||
|
@@ -97,13 +97,19 @@ jobs: | |
uses: taiki-e/setup-cross-toolchain-action@v1 | ||
with: | ||
target: ${{ matrix.target.platform }} | ||
- name: Install terraform | ||
if: matrix.target.run | ||
uses: hashicorp/setup-terraform@v3 | ||
- name: Setup Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
shared-key: "build-${{ matrix.toolchain }}-${{ matrix.target.platform }}" | ||
- name: Build | ||
run: | | ||
cargo build --all --locked | ||
- name: Build Examples | ||
run: | | ||
cargo build --examples --locked | ||
- name: Test | ||
if: matrix.target.run | ||
run: | | ||
|
@@ -116,6 +122,20 @@ jobs: | |
if: contains(matrix.toolchain, 'nightly') | ||
run: | | ||
cargo miri test --all --locked | ||
- name: Test Examples | ||
if: matrix.target.run | ||
shell: bash | ||
run: | | ||
rm terraform.d/bin | ||
ln -s ../target/${{ matrix.target.platform }}/debug/examples terraform.d/bin | ||
for d in examples/*/; do | ||
( | ||
cd "$d" | ||
terraform init | ||
terraform apply -auto-approve | ||
terraform destroy -auto-approve | ||
) | ||
done | ||
- name: Format | ||
run: | | ||
cargo fmt --all --check | ||
|
Oops, something went wrong.