File tree 6 files changed +9
-14
lines changed
6 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/sh
2
2
3
- VERSION=dev-2023-03
3
+ VERSION=dev-2023-04
4
4
FILE_NAME=odin-ubuntu-amd64-$VERSION .zip
5
5
sudo apt-get install -y aria2
6
6
mkdir /tmp/odin
7
7
cd /tmp/odin
8
8
aria2c -c -o $FILE_NAME https://github.com/odin-lang/Odin/releases/download/$VERSION /$FILE_NAME
9
- if test -d ubuntu_artifacts; then rm -r ubuntu_artifacts; fi
9
+ if test -d ubuntu_artifacts; then sudo rm -rf ubuntu_artifacts; fi
10
10
unzip -o $FILE_NAME
11
11
if test -d ubuntu_artifacts; then ODIN_BIN_PATH=$PWD /ubuntu_artifacts/odin; else ODIN_BIN_PATH=$PWD /odin; fi
12
12
sudo chmod +x $ODIN_BIN_PATH
Original file line number Diff line number Diff line change 5
5
sudo apt-get install -y libgc-dev
6
6
git clone https://github.com/vlang/v /tmp/vlang
7
7
cd /tmp/vlang
8
- pushd vlib/vweb
9
- cat vweb.v | sed " s/\bprintln('\[Vweb\] Running/eprintln('[Vweb] Running/" > temp.v && mv temp.v vweb.v
10
- popd
11
8
make && ./v -version
12
9
./v symlink
13
10
v --version
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
13
13
n = strconv.atoi (os.args[1 ]) or { 10 }
14
14
}
15
15
port := int (rand.u32_in_range (20000 , 50000 ) or { 23333 })
16
- spawn vweb.run (& App{}, port)
16
+ spawn vweb.run_at (& App{}, port: port, show_startup_message: false )
17
17
url := 'http://localhost:${port} /api'
18
18
mut ch := chan int {cap: n}
19
19
for i in 1 .. (n + 1 ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
3
3
import org.jetbrains.kotlin.config.KotlinCompilerVersion
4
4
5
5
plugins {
6
- val kotlinVersion = " 1.8.10 "
6
+ val kotlinVersion = " 1.8.20 "
7
7
kotlin(" jvm" ).version(kotlinVersion)
8
8
kotlin(" plugin.serialization" ).version(kotlinVersion)
9
9
// kotlin("plugin.spring").version(kotlinVersion)
@@ -31,7 +31,7 @@ dependencies {
31
31
// implementation("org.slf4j:slf4j-api:1.7.36")
32
32
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" )
33
33
implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0" )
34
- implementation(" org.jetbrains.kotlinx:atomicfu:0.20.1 " )
34
+ implementation(" org.jetbrains.kotlinx:atomicfu:0.20.2 " )
35
35
val ktor_version = " 2.2.4"
36
36
implementation(" io.ktor:ktor-server-core:$ktor_version " )
37
37
// implementation("io.ktor:ktor-server-netty:$ktor_version")
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.config.KotlinCompilerVersion
3
3
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
4
4
5
5
plugins {
6
- val kotlinVersion = " 1.8.10 "
6
+ val kotlinVersion = " 1.8.20 "
7
7
kotlin(" multiplatform" ).version(kotlinVersion)
8
8
kotlin(" plugin.serialization" ).version(kotlinVersion)
9
9
id(" com.github.ben-manes.versions" ).version(" 0.46.0" )
Original file line number Diff line number Diff line change 1
1
const std = @import ("std" );
2
- const Builder = std .build .Builder ;
3
2
4
- pub fn build (b : * Builder ) void {
3
+ pub fn build (b : * std.Build ) void {
5
4
// Standard target options allows the person running `zig build` to choose
6
5
// what target to build for. Here we do not override the defaults, which
7
6
// means any target is allowed, and the default is native. Other options
@@ -19,10 +18,9 @@ pub fn build(b: *Builder) void {
19
18
.optimize = std .builtin .Mode .ReleaseFast ,
20
19
});
21
20
exe .linkLibC ();
22
- // exe.setOutputDir("out");
23
- exe .install ();
21
+ b .installArtifact (exe );
24
22
25
- const run_cmd = exe . run ( );
23
+ const run_cmd = b . addRunArtifact ( exe );
26
24
run_cmd .step .dependOn (b .getInstallStep ());
27
25
if (b .args ) | args | {
28
26
run_cmd .addArgs (args );
You can’t perform that action at this time.
0 commit comments