finish dotrain yaml and refactor code #3812
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
name: Tauri builds | |
on: [push] | |
concurrency: | |
group: ${{ github.ref }}-tauri-build | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build-tauri: | |
strategy: | |
fail-fast: ${{ github.ref != 'refs/heads/main' }} | |
matrix: | |
os: [macos-13, macos-14, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
env: | |
DEPLOY_METABOARD_ADDRESS: ${{ vars.CI_DEPLOY_SEPOLIA_METABOARD_ADDRESS }} | |
CI_FORK_SEPOLIA_BLOCK_NUMBER: ${{ vars.CI_FORK_SEPOLIA_BLOCK_NUMBER }} | |
CI_FORK_SEPOLIA_DEPLOYER_ADDRESS: ${{ vars.CI_FORK_SEPOLIA_DEPLOYER_ADDRESS }} | |
CI_DEPLOY_SEPOLIA_RPC_URL: ${{ vars.CI_DEPLOY_SEPOLIA_RPC_URL }} | |
CI_SEPOLIA_METABOARD_URL: ${{ vars.CI_SEPOLIA_METABOARD_URL }} | |
CI_DEPLOY_POLYGON_RPC_URL: ${{ secrets.CI_DEPLOY_POLYGON_RPC_URL }} | |
RPC_URL_ETHEREUM_FORK: ${{ secrets.RPC_URL_ETHEREUM_FORK }} | |
COMMIT_SHA: ${{ github.sha }} | |
steps: | |
- name: Free up disk space in action runner (Ubuntu) | |
if: matrix.os == 'ubuntu-22.04' | |
run: | | |
sudo apt-get clean | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: Free up disk space in action runner (Macos) | |
if: matrix.os == 'macos-13' || matrix.os == 'macos-14' | |
run: | | |
sudo rm -rf \ | |
"$AGENT_TOOLSDIRECTORY" \ | |
/opt/google/chrome \ | |
/opt/microsoft/msedge \ | |
/opt/microsoft/powershell \ | |
/opt/pipx \ | |
/usr/lib/mono \ | |
/usr/local/julia* \ | |
/usr/local/lib/android \ | |
/usr/local/lib/node_modules \ | |
/usr/local/share/chromium \ | |
/usr/local/share/powershell \ | |
/usr/share/dotnet \ | |
/usr/share/swift | |
df -h / | |
find /Applications/ -name "Xcode*" | sort -r | tail --lines=+2 | xargs rm -rf | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- run: nix develop -c rainix-sol-prelude | |
working-directory: lib/rain.interpreter | |
- run: nix develop -c rainix-rs-prelude | |
working-directory: lib/rain.interpreter | |
- run: nix develop -c rainix-sol-prelude | |
working-directory: lib/rain.interpreter/lib/rain.metadata | |
- run: nix develop -c rainix-rs-prelude | |
working-directory: lib/rain.interpreter/lib/rain.metadata | |
- run: nix develop -c rainix-sol-prelude | |
- run: nix develop -c rainix-rs-prelude | |
- run: nix develop -c raindex-prelude | |
- run: nix develop -c ob-ui-components-prelude | |
- run: nix develop .#tauri-shell -c ob-tauri-prelude | |
- run: nix develop -c npm run build | |
working-directory: packages/orderbook | |
- run: nix develop -c npm run build | |
working-directory: packages/ui-components | |
- run: nix develop .#tauri-shell -c ob-tauri-unit-test | |
- run: nix develop .#tauri-shell --command ob-tauri-before-build-ci | |
working-directory: ./tauri-app | |
env: | |
WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }} | |
- run: nix develop .#tauri-shell --command npm run svelte-lint-format-check | |
working-directory: ./tauri-app | |
- run: nix develop .#tauri-shell --command cargo tauri build --verbose | |
working-directory: ./tauri-app | |
- run: nix develop .#tauri-shell --command tauri-rs-test |