Initial commit
- ID
cefeb06- date
2024-06-18 19:37:40+00:00- author
Alex Chan <alex@alexwlchan.net>- message
Initial commit- changed files
Changed files
.github/dependabot.yml (0) → .github/dependabot.yml (205)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..13b4ef5
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,10 @@
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "daily"
+ - package-ecosystem: "cargo"
+ directory: "/"
+ schedule:
+ interval: "daily"
.github/workflows/test.yml (0) → .github/workflows/test.yml (340)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..a208df6
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,20 @@
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+name: build
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/rust-toolchain@v1
+ with:
+ toolchain: stable
+
+ - run: cargo build
+ - run: cargo test
+ - run: cargo fmt --check
.github/workflows/upload_binaries.yml (0) → .github/workflows/upload_binaries.yml (1146)
diff --git a/.github/workflows/upload_binaries.yml b/.github/workflows/upload_binaries.yml
new file mode 100644
index 0000000..4073ab6
--- /dev/null
+++ b/.github/workflows/upload_binaries.yml
@@ -0,0 +1,48 @@
+name: Release
+
+on:
+ push:
+ tags:
+ - v[0-9]+.*
+
+jobs:
+ create-release:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: taiki-e/create-gh-release-action@v1
+ with:
+ changelog: CHANGELOG.md
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ upload-assets:
+ strategy:
+ matrix:
+ include:
+ - target: aarch64-unknown-linux-gnu
+ - target: aarch64-unknown-linux-musl
+ - target: x86_64-unknown-linux-gnu
+ - target: x86_64-unknown-linux-musl
+
+ - target: aarch64-apple-darwin
+ os: macos-latest
+ - target: x86_64-apple-darwin
+ os: macos-latest
+
+ - target: x86_64-pc-windows-msvc
+ os: windows-latest
+
+ runs-on: ${{ matrix.os || 'ubuntu-latest' }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: taiki-e/upload-rust-binary-action@v1
+ with:
+ target: ${{ matrix.target }}
+ bin: emptydir
+ tar: all
+ zip: windows
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.gitignore (0) → .gitignore (7)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..eb5a316
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+target
Cargo.lock (0) → Cargo.lock (152)
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..c821844
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "emptydir"
+version = "0.1.0"
Cargo.toml (0) → Cargo.toml (79)
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..b7f1e85
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "emptydir"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
src/main.rs (0) → src/main.rs (45)
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..e7a11a9
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}