aboutsummaryrefslogtreecommitdiff
path: root/.github/actions/setup-system
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
committerPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
commit2582162cea2b3a59cd21c78f8b73cb03d0acad40 (patch)
tree432057475f3b51850a85e2cba9969bcb79f3a8e6 /.github/actions/setup-system
parent06f51ccdc496a6581d098edc424f3973e550221d (diff)
downloadNexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.gz
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.bz2
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.zip
refactor(trunk): refactor the entire project idk
Diffstat (limited to '.github/actions/setup-system')
-rw-r--r--.github/actions/setup-system/action.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/actions/setup-system/action.yml b/.github/actions/setup-system/action.yml
new file mode 100644
index 0000000..3b33c82
--- /dev/null
+++ b/.github/actions/setup-system/action.yml
@@ -0,0 +1,36 @@
+name: Setup System and Rust
+description: Setup System and Rust
+inputs:
+ token:
+ description: Github token
+ required: false
+ default: ''
+ target:
+ description: toolchain target triple
+ required: false
+ setup-arg:
+ description: Argument for the system setup script
+ required: false
+ default: ''
+ save-cache:
+ description: Whether to save the System cache
+ required: false
+ default: 'false'
+runs:
+ using: 'composite'
+ steps:
+ - name: Setup Rust and Dependencies
+ uses: ./.github/actions/setup-rust
+ with:
+ target: ${{ inputs.target }}
+ save-cache: ${{ inputs.save-cache }}
+
+ - name: Run setup.sh script
+ shell: bash
+ if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
+ run: ./.github/scripts/setup.sh ${{ inputs.setup-arg }}
+
+ - name: Run setup.ps1 script
+ shell: powershell
+ if: ${{ runner.os == 'Windows' }}
+ run: ./.github/scripts/setup.ps1