Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa6ef4b

Browse files
committed
create an action for setting up imdisk
1 parentd6c1828 commitfa6ef4b

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name:"Setup ImDisk"
2+
if:runner.os == 'Windows'
3+
description:|
4+
Sets up the ImDisk toolkit for Windows and creates a RAM disk on drive R:.
5+
inputs:
6+
runs:
7+
using:"composite"
8+
steps:
9+
-name:Download ImDisk
10+
if:runner.os == 'Windows'
11+
shell:bash
12+
run:|
13+
mkdir imdisk
14+
cd imdisk
15+
curl -L -o files.cab https://github.com/coder/imdisk-artifacts/raw/92a17839ebc0ee3e69be019f66b3e9b5d2de4482/files.cab
16+
curl -L -o install.bat https://github.com/coder/imdisk-artifacts/raw/92a17839ebc0ee3e69be019f66b3e9b5d2de4482/install.bat
17+
cd ..
18+
19+
-name:Install ImDisk
20+
shell:cmd
21+
run:|
22+
cd imdisk
23+
install.bat /silent
24+
25+
-name:Create RAM Disk
26+
shell:cmd
27+
run:|
28+
imdisk -a -s 4096M -m R: -p "/fs:ntfs /q /y"

‎.github/workflows/ci.yaml‎

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -368,28 +368,9 @@ jobs:
368368
-name:Setup Terraform
369369
uses:./.github/actions/setup-tf
370370

371-
-name:Download ImDisk
372-
if:runner.os == 'Windows'
373-
shell:bash
374-
run:|
375-
mkdir imdisk
376-
cd imdisk
377-
curl -L -o files.cab https://imdisk-ci-files.pages.dev/ImDiskTk20241123/files.cab
378-
curl -L -o install.bat https://imdisk-ci-files.pages.dev/ImDiskTk20241123/install.bat
379-
cd ..
380-
381-
-name:Install ImDisk
382-
if:runner.os == 'Windows'
383-
shell:cmd
384-
run:|
385-
cd imdisk
386-
install.bat /silent
387-
388-
-name:Create RAM Disk
389-
if:runner.os == 'Windows'
390-
shell:cmd
391-
run:|
392-
imdisk -a -s 4096M -m R: -p "/fs:ntfs /q /y"
371+
# Sets up the ImDisk toolkit for Windows and creates a RAM disk on drive R:.
372+
-name:Setup ImDisk
373+
uses:./.github/actions/setup-imdisk
393374

394375
-name:Test with PostgreSQL Database
395376
env:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp