summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-14 23:41:57 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-14 23:41:57 +0100
commit32b7ca1443c4c5e89f1094c894488ce41f92d8ce (patch)
tree55e622cd503eb38c5700b41ba6499850dbf7ae77 /.github
parentb59b5ad0e92633185f1965e66dc776f6b143c61f (diff)
downloadiced-32b7ca1443c4c5e89f1094c894488ce41f92d8ce.tar.gz
iced-32b7ca1443c4c5e89f1094c894488ce41f92d8ce.tar.bz2
iced-32b7ca1443c4c5e89f1094c894488ce41f92d8ce.zip
Add `Build` workflow to generate `todos` binaries
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..e18c2e11
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,35 @@
+name: Build
+on:
+ push:
+ branches:
+ - master
+jobs:
+ todos:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macOS-latest]
+ rust: [stable]
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ with:
+ rust-version: ${{ matrix.rust }}
+ - name: Enable Link Time Optimizations
+ run: |
+ echo -e "[profile.release]\nlto = true" >> Cargo.toml
+ - uses: actions/checkout@master
+ - name: Build todos example
+ run: |
+ cargo build --verbose --release --example todos
+ - name: Archive todos binary
+ if: matrix.os == 'windows-latest'
+ uses: actions/upload-artifact@v1
+ with:
+ name: todos
+ path: target/release/examples/todos.exe
+ - name: Archive todos binary
+ if: matrix.os != 'windows-latest'
+ uses: actions/upload-artifact@v1
+ with:
+ name: todos
+ path: target/release/examples/todos